added check span!=nil && conn close #154
Reference in New Issue
Block a user
No description provided.
Delete Branch "devstigneev/micro-broker-kgo:v3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull Request template
Please, go through these steps before clicking submit on this PR.
closes #XXXX
in your comment to auto-close the issue that your PR fixes (if applicable).PLEASE REMOVE THIS TEMPLATE BEFORE SUBMITTING
@@ -287,6 +287,7 @@ func (k *Broker) publish(ctx context.Context, msgs []*broker.Message, opts ...br
k.Unlock()
return err
}
k.c.Close()
такое не прокатит? если открыли новый коннект - попробовать закрыть текущий