Skip to content

Commit

Permalink
fix(processor): Drop mutex for ImmediatelyExportItems (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm authored Oct 4, 2023
1 parent 5b81903 commit f2c5a6a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/processor/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,6 @@ func (bvp *BatchItemProcessor[T]) ImmediatelyExportItems(ctx context.Context, it
_, span := observability.Tracer().Start(ctx, "BatchItemProcessor.ImmediatelyExportItems")
defer span.End()

bvp.batchMutex.Lock()
defer bvp.batchMutex.Unlock()

if l := len(items); l > 0 {
countItemsToExport := len(items)

Expand Down

0 comments on commit f2c5a6a

Please sign in to comment.