Skip to content

Commit

Permalink
reset rate limiter on no reenqueue
Browse files Browse the repository at this point in the history
  • Loading branch information
limhawjia committed Jul 13, 2023
1 parent 89e78e4 commit a457bd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/util/informermanager/federatedinformermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func (m *federatedInformerManager) worker(ctx context.Context) {
m.queue.AddRateLimited(key)
} else {
logger.Error(err, "Failed to process FederatedCluster")
m.queue.Forget(key)
}
return
}
Expand Down
1 change: 1 addition & 0 deletions pkg/util/informermanager/informermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ func (m *informerManager) worker(ctx context.Context) {
m.queue.AddRateLimited(key)
} else {
logger.Error(err, "Failed to process FederatedTypeConfig")
m.queue.Forget(key)
}
return
}
Expand Down

0 comments on commit a457bd4

Please sign in to comment.