Skip to content

Commit 0335867

Browse files
committed
replace AddRateLimited with Add in enqueue func
1 parent c48ed1c commit 0335867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staging/src/k8s.io/sample-controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ func (c *Controller) enqueueFoo(obj interface{}) {
342342
utilruntime.HandleError(err)
343343
return
344344
}
345-
c.workqueue.AddRateLimited(key)
345+
c.workqueue.Add(key)
346346
}
347347

348348
// handleObject will take any resource implementing metav1.Object and attempt

0 commit comments

Comments
 (0)