mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix kafka consumer double close (#25051)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
00f8f236d7
commit
6a1eff3487
@ -251,7 +251,6 @@ func (kc *Consumer) CheckTopicValid(topic string) error {
|
||||
func (kc *Consumer) Close() {
|
||||
kc.closeOnce.Do(func() {
|
||||
close(kc.closeCh)
|
||||
kc.wg.Wait()
|
||||
kc.c.Close()
|
||||
kc.wg.Wait() // wait worker exist and close the client
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user