fix readerConfig.Brokers and writerConfig.Brokers

This commit is contained in:
hello2t 2020-04-13 22:56:40 +08:00 committed by Vasiliy Tolstov
parent cba22d5cf0
commit 9353991c21

View File

@ -110,6 +110,8 @@ func (k *kBroker) Connect() error {
k.Lock() k.Lock()
k.addrs = kaddrs k.addrs = kaddrs
k.readerConfig.Brokers = k.addrs
k.writerConfig.Brokers = k.addrs
k.connected = true k.connected = true
k.Unlock() k.Unlock()