[skip ci]Fix golint error in mq_msgstream (#10860)

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
pull/10865/head
zhenshan.cao 2021-10-28 23:44:46 +08:00 committed by GitHub
parent 25551ffa2f
commit 6ae5b926c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -605,6 +605,7 @@ func (ms *MqTtMsgStream) AsConsumer(channels []string, subName string) {
ms.AsConsumerWithPosition(channels, subName, mqclient.SubscriptionPositionEarliest)
}
// AsConsumerWithPosition subscribes channels as consumer for a MsgStream and seeks to a certain position.
func (ms *MqTtMsgStream) AsConsumerWithPosition(channels []string, subName string, position mqclient.SubscriptionInitialPosition) {
for _, channel := range channels {
if _, ok := ms.consumers[channel]; ok {