Skip to content

Commit

Permalink
Update modules/ingester/instance.go
Browse files Browse the repository at this point in the history
Co-authored-by: Mario <mariorvinas@gmail.com>
  • Loading branch information
joe-elliott and mapno authored Nov 22, 2024
1 parent 91a7496 commit 2a975af
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/ingester/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ func (i *instance) push(ctx context.Context, id, traceBytes []byte) error {
i.tracesMtx.Lock()
defer i.tracesMtx.Unlock()

// check for max traces before grabbing the lock to better load shed
err := i.limiter.AssertMaxTracesPerUser(i.instanceID, len(i.traces))
if err != nil {
return newMaxLiveTracesError(i.instanceID, err.Error())
Expand Down

0 comments on commit 2a975af

Please sign in to comment.