From 6933c1bc229c196e9c71061e19a0cdc76adb1dbc Mon Sep 17 00:00:00 2001 From: Alvaro Aleman Date: Mon, 30 Sep 2024 18:33:30 -0400 Subject: [PATCH] Fix accidental breaking change in TypedNewDelayingQueue It was added for compatibility reason but ended up getting a `config` argument by accident, resulting in not actually being compatible, this change fixes that. --- staging/src/k8s.io/client-go/util/workqueue/delaying_queue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/client-go/util/workqueue/delaying_queue.go b/staging/src/k8s.io/client-go/util/workqueue/delaying_queue.go index be1e4981d68..57c77e4b70b 100644 --- a/staging/src/k8s.io/client-go/util/workqueue/delaying_queue.go +++ b/staging/src/k8s.io/client-go/util/workqueue/delaying_queue.go @@ -87,8 +87,8 @@ func NewDelayingQueueWithConfig(config DelayingQueueConfig) DelayingInterface { // TypedNewDelayingQueue exists for backwards compatibility only. // // Deprecated: use NewTypedDelayingQueueWithConfig instead. -func TypedNewDelayingQueue[T comparable](config TypedDelayingQueueConfig[T]) TypedDelayingInterface[T] { - return NewTypedDelayingQueueWithConfig(config) +func TypedNewDelayingQueue[T comparable]() TypedDelayingInterface[T] { + return NewTypedDelayingQueue[T]() } // NewTypedDelayingQueueWithConfig constructs a new workqueue with options to