mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
修复gkafka对象关闭问题
This commit is contained in:
@ -80,6 +80,9 @@ func NewConfig() *Config {
|
||||
|
||||
// Close client.
|
||||
func (client *Client) Close() {
|
||||
if client.rawConsumer != nil {
|
||||
client.rawConsumer.Close()
|
||||
}
|
||||
if client.consumer != nil {
|
||||
client.consumer.Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user