[skip ci]Add comment for rocksmq reader (#12897)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/12930/head
yukun 2021-12-08 09:16:23 +08:00 committed by GitHub
parent 43eece5545
commit 14f5348e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ func (r *reader) Next(ctx context.Context) (Message, error) {
return msg, nil
}
// HasNext check if there is a message available to read
func (r *reader) HasNext() bool {
return r.c.server.HasNext(r.topic, r.name, r.startMessageIDInclusive)
}