diff options
author | zeripath <art27@cantab.net> | 2021-06-05 15:23:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-05 15:23:22 +0100 |
commit | fe18a85f54813e835b57fa804cf009f910b79edc (patch) | |
tree | c5b733aaaf892b56167a16473b68c85c8924dc49 /modules/queue | |
parent | b77c62d95063747426524b53c928ac90994c2a56 (diff) | |
download | gitea-fe18a85f54813e835b57fa804cf009f910b79edc.tar.gz gitea-fe18a85f54813e835b57fa804cf009f910b79edc.zip |
Fix panic (#16072)
There is an incorrect casting in the wrapped queue.
Fix #16071
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/queue')
-rw-r--r-- | modules/queue/unique_queue_disk_channel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/queue/unique_queue_disk_channel.go b/modules/queue/unique_queue_disk_channel.go index 65a3941519..af42c0913d 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) }() |