[skip ci]Add pulsar client comments (#11197)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/11201/head
yukun 2021-11-03 23:20:46 +08:00 committed by GitHub
parent a1106181c3
commit e817cfbae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,8 @@ func (pc *pulsarConsumer) Chan() <-chan ConsumerMessage {
return pc.msgChannel
}
// Seek seek consume position to the pointed messageID,
// the pointed messageID will be consumed after the seek in pulsar
func (pc *pulsarConsumer) Seek(id MessageID) error {
messageID := id.(*pulsarID).messageID
err := pc.c.Seek(messageID)