[skip ci]Add rmq consumer impl chan comment (#11531)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
yukun 2021-11-09 21:11:41 +08:00 committed by GitHub
parent f6b749ec93
commit 2073ae497b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,6 +98,7 @@ func (c *consumer) MsgMutex() chan struct{} {
return c.msgMutex
}
// Chan start consume goroutine and return message channel
func (c *consumer) Chan() <-chan ConsumerMessage {
c.startOnce.Do(func() {
c.client.wg.Add(1)