[skip ci]Fix golint for rocksmq (#12811)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/12815/head
yukun 2021-12-06 19:47:46 +08:00 committed by GitHub
parent 00f42b7e3e
commit 67cab4e915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ const (
CurrentIDSuffix = "current_id"
ReaderNamePrefix = "reader-"
RmqNotServingErrMsg = "Rocksmq is not serving"
RmqNotServingErrMsg = "rocksmq is not serving"
)
const (
@ -992,7 +992,7 @@ func (rmq *rocksmq) CreateReader(topicName string, startMsgID UniqueID, messageI
}
nowTs, err := getNowTs(rmq.idAllocator)
if err != nil {
return "", errors.New("Can't get current ts from rocksmq idAllocator")
return "", errors.New("can't get current ts from rocksmq idAllocator")
}
readerName := subscriptionRolePrefix + ReaderNamePrefix + strconv.FormatInt(nowTs, 10)