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

5
kgo.go
View File

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