mirror of https://github.com/milvus-io/milvus.git
[skip ci]Add comment for rocksmq reader (#13014)
Signed-off-by: fishpenguin <kun.yu@zilliz.com>pull/13021/head
parent
490f8b50e1
commit
426f73ce07
internal/util/mqclient
|
@ -17,6 +17,7 @@ func (rr *rmqReader) Topic() string {
|
||||||
return rr.r.Topic()
|
return rr.r.Topic()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Next returns the next message of reader, blocking until a message is available
|
||||||
func (rr *rmqReader) Next(ctx context.Context) (Message, error) {
|
func (rr *rmqReader) Next(ctx context.Context) (Message, error) {
|
||||||
rMsg, err := rr.r.Next(ctx)
|
rMsg, err := rr.r.Next(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue