From 8c362fd6aede493b89f8a3fa7a00fab2f07eb6af Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 5 Dec 2024 09:53:40 +0300 Subject: [PATCH] fixup panic Signed-off-by: Vasiliy Tolstov --- kgo.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, } }