修复gkafka对象关闭问题

This commit is contained in:
john
2018-07-30 10:29:48 +08:00
parent aadbb774f8
commit 6dc3b763c5

View File

@ -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()
}