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

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

View File

@ -74,6 +74,7 @@ func (r *reader) HasNext() bool {
return r.c.server.HasNext(r.topic, r.name, r.startMessageIDInclusive)
}
// Close close the reader and stop the blocking reader
func (r *reader) Close() {
r.c.server.CloseReader(r.topic, r.name)
}