From 2dc39638387f5b3fd12c8cb9218024b96f6114be Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Sat, 5 Jun 2021 11:12:25 +0100 Subject: [PATCH] Fix panic There is an incorrect casting in the wrapped queue. Fix #16071 Signed-off-by: Andrew Thornton --- modules/queue/unique_queue_disk_channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/queue/unique_queue_disk_channel.go b/modules/queue/unique_queue_disk_channel.go index 65a3941519954..af42c0913d4da 100644 --- a/modules/queue/unique_queue_disk_channel.go +++ b/modules/queue/unique_queue_disk_channel.go @@ -188,7 +188,7 @@ func (q *PersistableChannelUniqueQueue) Run(atShutdown, atTerminate func(func()) go q.internal.Run(func(_ func()) {}, func(_ func()) {}) go func() { _ = q.internal.Flush(0) - log.Debug("LevelUniqueQueue: %s flushed so shutting down", q.internal.(*LevelQueue).Name()) + log.Debug("LevelUniqueQueue: %s flushed so shutting down", q.internal.(*LevelUniqueQueue).Name()) q.internal.(*LevelUniqueQueue).Shutdown() GetManager().Remove(q.internal.(*LevelUniqueQueue).qid) }()