Skip to content

Commit 6933c1b

Browse files
committed
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.
1 parent 67cdc26 commit 6933c1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

staging/src/k8s.io/client-go/util/workqueue/delaying_queue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ func NewDelayingQueueWithConfig(config DelayingQueueConfig) DelayingInterface {
8787
// TypedNewDelayingQueue exists for backwards compatibility only.
8888
//
8989
// Deprecated: use NewTypedDelayingQueueWithConfig instead.
90-
func TypedNewDelayingQueue[T comparable](config TypedDelayingQueueConfig[T]) TypedDelayingInterface[T] {
91-
return NewTypedDelayingQueueWithConfig(config)
90+
func TypedNewDelayingQueue[T comparable]() TypedDelayingInterface[T] {
91+
return NewTypedDelayingQueue[T]()
9292
}
9393

9494
// NewTypedDelayingQueueWithConfig constructs a new workqueue with options to

0 commit comments

Comments
 (0)