fixup panic

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2024-12-05 09:53:40 +03:00
parent 90365a455c
commit d5f2df31e0

1
kgo.go
View File

@ -460,6 +460,7 @@ func NewBroker(opts ...broker.Option) *Broker {
} }
return &Broker{ return &Broker{
connected: &atomic.Uint32{},
opts: options, opts: options,
kopts: kopts, kopts: kopts,
} }