File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ var keyFunc = cache.DeletionHandlingMetaNamespaceKeyFunc
36
36
// which timestamp is older than the last successful get operation.
37
37
type Queue struct {
38
38
// queue is the work queue the worker polls
39
- queue workqueue.RateLimitingInterface
39
+ queue workqueue.TypedRateLimitingInterface [ any ]
40
40
// sync is called for each item in the queue
41
41
sync func (interface {}) error
42
42
// workerDone is closed when the worker exits
@@ -172,7 +172,7 @@ func NewTaskQueue(syncFn func(interface{}) error) *Queue {
172
172
// NewCustomTaskQueue creates a new custom task queue with the given sync function.
173
173
func NewCustomTaskQueue (syncFn func (interface {}) error , fn func (interface {}) (interface {}, error )) * Queue {
174
174
q := & Queue {
175
- queue : workqueue .NewRateLimitingQueue (workqueue .DefaultControllerRateLimiter ()),
175
+ queue : workqueue .NewTypedRateLimitingQueue (workqueue .DefaultTypedControllerRateLimiter [ any ] ()),
176
176
sync : syncFn ,
177
177
workerDone : make (chan bool ),
178
178
fn : fn ,
You can’t perform that action at this time.
0 commit comments