pass errors from broker to subscribers
Some checks are pending
coverage / build (push) Waiting to run
test / test (push) Waiting to run
sync / sync (push) Has started running

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2025-12-02 21:35:35 +03:00
parent 7a29f49751
commit d000ac6843

View File

@@ -352,6 +352,8 @@ func (pc *consumer) newErrorMessage(err error, t string, p int32) *kgoMessage {
pm = &kgoMessage{}
}
pm.ack = false
pm.body = nil
pm.err = err
pm.topic = t
pm.hdr = metadata.New(2)