mirror of https://github.com/milvus-io/milvus.git
Fix kafka consumer double close (#25051)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/25054/head
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…
Reference in New Issue