[skip ci] Add comment for seek (#8811)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/8812/head
xige-16 2021-09-28 23:17:53 +08:00 committed by GitHub
parent 002e676bd1
commit 593ceb6d1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -432,6 +432,7 @@ func (ms *mqMsgStream) Chan() <-chan *MsgPack {
return ms.receiveBuf return ms.receiveBuf
} }
// Seek reset the subscription associated with this consumer to a specific position
func (ms *mqMsgStream) Seek(msgPositions []*internalpb.MsgPosition) error { func (ms *mqMsgStream) Seek(msgPositions []*internalpb.MsgPosition) error {
for _, mp := range msgPositions { for _, mp := range msgPositions {
consumer, ok := ms.consumers[mp.ChannelName] consumer, ok := ms.consumers[mp.ChannelName]