added check span!=nil && conn close
Some checks failed
lint / lint (pull_request) Failing after 1m3s
test / test (pull_request) Successful in 3m27s

This commit is contained in:
2025-05-21 11:26:54 +03:00
parent 1e587b348a
commit 9dd6efddf9
2 changed files with 35 additions and 12 deletions

1
kgo.go
View File

@@ -287,6 +287,7 @@ func (k *Broker) publish(ctx context.Context, msgs []*broker.Message, opts ...br
k.Unlock()
return err
}
k.c.Close()
k.c = c
k.connected.Store(1)
}