1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-24 18:38:28 +00:00

Upgrade levelqueue to v0.4.0 (#16560) (#16561)

Fix #16546
This commit is contained in:
Lunny Xiao
2021-07-28 00:59:06 +08:00
committed by GitHub
parent 7365b4e757
commit 840d240a61
6 changed files with 13 additions and 2 deletions

View File

@@ -181,6 +181,8 @@ func (queue *UniqueQueue) Len() int64 {
func (queue *UniqueQueue) Close() error {
_ = queue.q.Close()
_ = queue.set.Close()
queue.set.lock.Lock()
defer queue.set.lock.Unlock()
if !queue.closeUnderlyingDB {
queue.db = nil
return nil