Skip to content

Commit 36826fd

Browse files
committed
fix
Signed-off-by: dongjiang <[email protected]>
1 parent 5c97b89 commit 36826fd

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

pkg/controller/priorityqueue/priorityqueue.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ func (w *priorityqueue[T]) Done(item T) {
317317
func (w *priorityqueue[T]) ShutDown() {
318318
w.shutdown.Store(true)
319319
close(w.done)
320-
close(w.get)
321320
}
322321

323322
// ShutDownWithDrain just calls ShutDown, as the draining

pkg/controller/priorityqueue/priorityqueue_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ var _ = Describe("Controllerworkqueue", func() {
307307
q.Add("baz")
308308
// shut down
309309
q.ShutDown()
310+
q.AddWithOpts(AddOpts{After: time.Second}, "foo")
310311

311312
item, priority, isShutDown := q.GetWithPriority()
312313
Expect(item).To(Equal(""))

0 commit comments

Comments
 (0)