[skip ci]Fix golint (#12481)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
yukun 2021-11-30 19:43:46 +08:00 committed by GitHub
parent f90e75d19d
commit fea1126946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ func constructKey(metaName, topic string) (string, error) {
// Check metaName/topic
oldLen := len(metaName + topic)
if oldLen > FixedChannelNameLen {
return "", errors.New("Topic name exceeds limit")
return "", errors.New("topic name exceeds limit")
}
nameBytes := make([]byte, FixedChannelNameLen-oldLen)