added check span!=nil && conn close #154

Merged
vtolstov merged 2 commits from devstigneev/micro-broker-kgo:v3 into v3 2025-05-21 11:56:48 +03:00
Member

Pull Request template

Please, go through these steps before clicking submit on this PR.

  1. Give a descriptive title to your PR.
  2. Provide a description of your changes.
  3. Make sure you have some relevant tests.
  4. Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if applicable).

PLEASE REMOVE THIS TEMPLATE BEFORE SUBMITTING

## Pull Request template Please, go through these steps before clicking submit on this PR. 1. Give a descriptive title to your PR. 2. Provide a description of your changes. 3. Make sure you have some relevant tests. 4. Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if applicable). **PLEASE REMOVE THIS TEMPLATE BEFORE SUBMITTING**
devstigneev added 1 commit 2025-05-21 11:27:19 +03:00
added check span!=nil && conn close
Some checks failed
lint / lint (pull_request) Failing after 1m3s
test / test (pull_request) Successful in 3m27s
9dd6efddf9
devstigneev reviewed 2025-05-21 11:28:10 +03:00
kgo.go Outdated
@@ -287,6 +287,7 @@ func (k *Broker) publish(ctx context.Context, msgs []*broker.Message, opts ...br
k.Unlock()
return err
}
k.c.Close()
Author
Member

такое не прокатит? если открыли новый коннект - попробовать закрыть текущий

такое не прокатит? если открыли новый коннект - попробовать закрыть текущий
devstigneev added 1 commit 2025-05-21 11:36:39 +03:00
removed reconn
Some checks failed
lint / lint (pull_request) Failing after 56s
test / test (pull_request) Successful in 2m28s
397f5414b3
vtolstov merged commit ff7a88fcce into v3 2025-05-21 11:56:48 +03:00
vtolstov deleted branch v3 2025-05-21 11:56:49 +03:00
Sign in to join this conversation.
No description provided.