fix broker implementation

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-02-10 00:19:08 +03:00
parent 4c519a79be
commit 0795ba37c3

View File

@ -100,6 +100,10 @@ func (k *kBroker) Address() string {
return "127.0.0.1:9092"
}
func (k *kBroker) Name() string {
return k.opts.Name
}
func (k *kBroker) Connect(ctx context.Context) error {
k.RLock()
if k.connected {