summaryrefslogtreecommitdiffstats
path: root/modules/queue/queue_disk_channel.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-01-11 19:06:35 +0000
committerGitHub <noreply@github.com>2020-01-11 19:06:35 +0000
commit960ac3609962b33c6937ef9de473122dff98a523 (patch)
tree934561da287c4a2856f7a3c750803dc16c423959 /modules/queue/queue_disk_channel.go
parentedd31770aa10207d91405a98c9b97ce14db7b302 (diff)
downloadgitea-960ac3609962b33c6937ef9de473122dff98a523.tar.gz
gitea-960ac3609962b33c6937ef9de473122dff98a523.zip
Remove unused lock (#9709)
Diffstat (limited to 'modules/queue/queue_disk_channel.go')
-rw-r--r--modules/queue/queue_disk_channel.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/queue/queue_disk_channel.go b/modules/queue/queue_disk_channel.go
index 895c8ce918..6bb5a1be97 100644
--- a/modules/queue/queue_disk_channel.go
+++ b/modules/queue/queue_disk_channel.go
@@ -6,6 +6,7 @@ package queue
import (
"context"
+ "sync"
"time"
"code.gitea.io/gitea/modules/log"
@@ -33,6 +34,7 @@ type PersistableChannelQueueConfiguration struct {
type PersistableChannelQueue struct {
*ChannelQueue
delayedStarter
+ lock sync.Mutex
closed chan struct{}
}