fixup connected status
Some checks failed
test / test (push) Has been cancelled

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2025-03-07 11:44:56 +03:00
parent eaea14e5a8
commit ec4922ad8b

3
kgo.go
View File

@@ -142,10 +142,9 @@ func (k *Broker) connect(ctx context.Context, opts ...kgo.Opt) (*kgo.Client, *ho
} }
return nil, nil, err return nil, nil, err
} }
k.connected.Store(1)
} }
k.connected.Store(1)
return c, htracer, nil return c, htracer, nil
} }