Skip to content

Commit 8026535

Browse files
Fix reference count bug in partition batcher
1 parent 7c31dd5 commit 8026535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exporter/exporterhelper/internal/queuebatch/partition_batcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (qb *partitionBatcher) Consume(ctx context.Context, req request.Request, do
136136
numRefs++
137137
}
138138
if numRefs > 1 {
139-
done = newRefCountDone(done, int64(len(reqList)))
139+
done = newRefCountDone(done, int64(numRefs))
140140
if mergeSplitErr != nil {
141141
done.OnDone(mergeSplitErr)
142142
}

0 commit comments

Comments
 (0)