Skip to content

Commit

Permalink
fix: remove unused mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
turip committed Aug 21, 2024
1 parent 8f76696 commit bceb056
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/entitlement/balanceworker/ingesthandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"errors"
"fmt"
"sync"

"github.com/openmeterio/openmeter/internal/entitlement"
"github.com/openmeterio/openmeter/internal/event/metadata"
Expand All @@ -13,12 +12,7 @@ import (
"github.com/openmeterio/openmeter/pkg/slicesx"
)

var ss sync.Mutex

func (w *Worker) handleBatchedIngestEvent(ctx context.Context, event ingestevents.EventBatchedIngest) error {
ss.Lock()
defer ss.Unlock()

filters := slicesx.Map(event.Events, func(e ingestevents.IngestEventData) IngestEventQueryFilter {
return IngestEventQueryFilter{
Namespace: e.Namespace.ID,
Expand Down

0 comments on commit bceb056

Please sign in to comment.