undo update size allocate
Some checks are pending
codeql / analyze (go) (pull_request) Blocked by required conditions
prbuild / test (pull_request) Blocked by required conditions
prbuild / lint (pull_request) Blocked by required conditions
automerge / automerge (pull_request) Has been skipped
dependabot-automerge / automerge (pull_request) Has been skipped
autoapprove / autoapprove (pull_request) Successful in 6s

This commit is contained in:
Денис Евстигнеев 2024-11-21 22:21:57 +03:00
parent c4d6924efe
commit 3ceffd88d0

View File

@ -54,7 +54,7 @@ func (m *hookTracer) OnProduceRecordBuffered(r *kgo.Record) {
omd, ok := metadata.FromOutgoingContext(r.Context)
if !ok {
omd = metadata.New(0)
omd = metadata.New(len(r.Headers))
}
md := metadata.Copy(omd)
@ -121,7 +121,7 @@ func (m *hookTracer) OnFetchRecordBuffered(r *kgo.Record) {
}
omd, ok := metadata.FromIncomingContext(r.Context)
if !ok {
omd = metadata.New(0)
omd = metadata.New(len(r.Headers))
}
md := metadata.Copy(omd)