]> source.dussan.org Git - gitea.git/commitdiff
Fix panic (#16072)
authorzeripath <art27@cantab.net>
Sat, 5 Jun 2021 14:23:22 +0000 (15:23 +0100)
committerGitHub <noreply@github.com>
Sat, 5 Jun 2021 14:23:22 +0000 (15:23 +0100)
There is an incorrect casting in the wrapped queue.

Fix #16071

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/queue/unique_queue_disk_channel.go

index 65a39415199543f64a0f78188de29bf05dfd0676..af42c0913d4dadbd90d42455f7c2e89cf98147e0 100644 (file)
@@ -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)
                }()