Skip to content

Commit

Permalink
VirtualKubelet: replicated code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cheina97 authored and adamjensenbot committed Apr 18, 2023
1 parent 2353e4f commit bbc4cb8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/virtualKubelet/reflection/generic/reflector.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,6 @@ func (gr *reflector) processNextWorkItem() bool {
// Run the handler, passing it the item to be processed as parameter.
if err := gr.handle(context.Background(), key.(types.NamespacedName)); err != nil {
var eae enqueueAfterError
if errors.As(err, &eae) {
// Put the item back on the workqueue after the given duration elapsed.
gr.workqueue.AddAfter(key, eae.duration)
return true
}

// Put the item back on the workqueue to handle any transient errors.
gr.workqueue.AddRateLimited(key)

// Increase the error counter metric.
metrics.ErrorsCounter.With(prometheus.Labels{"namespace": key.(types.NamespacedName).Namespace,
Expand Down

0 comments on commit bbc4cb8

Please sign in to comment.