diff --git a/kgo.go b/kgo.go index 6c4e7fc..860dfa0 100644 --- a/kgo.go +++ b/kgo.go @@ -460,7 +460,8 @@ func NewBroker(opts ...broker.Option) *Broker { } return &Broker{ - opts: options, - kopts: kopts, + connected: &atomic.Uint32{}, + opts: options, + kopts: kopts, } }