Skip to content

Commit

Permalink
Play golf
Browse files Browse the repository at this point in the history
  • Loading branch information
zalegrala committed Jul 31, 2024
1 parent a7664e1 commit abef2bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tempodb/blocklist/poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,9 @@ func (p *Poller) Do(previous *List) (PerTenant, PerTenantCompacted, error) {
blocklist = PerTenant{}
compactedBlocklist = PerTenantCompacted{}

tenantFailuresRemaining atomic.Int32
tenantFailuresRemaining = atomic.NewInt32(int32(p.cfg.TolerateTenantFailures))
)

tenantFailuresRemaining.Store(int32(p.cfg.TolerateTenantFailures))

for _, tenantID := range tenants {
// Exit early if we have exceeded our tolerance for number of failing tenants.
if tenantFailuresRemaining.Load() < 0 {
Expand Down

0 comments on commit abef2bd

Please sign in to comment.