summaryrefslogtreecommitdiffstats
path: root/modules/queue/queue_wrapped.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_wrapped.go
parentedd31770aa10207d91405a98c9b97ce14db7b302 (diff)
downloadgitea-960ac3609962b33c6937ef9de473122dff98a523.tar.gz
gitea-960ac3609962b33c6937ef9de473122dff98a523.zip
Remove unused lock (#9709)
Diffstat (limited to 'modules/queue/queue_wrapped.go')
-rw-r--r--modules/queue/queue_wrapped.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/queue/queue_wrapped.go b/modules/queue/queue_wrapped.go
index 0e948bae28..c52e6e4673 100644
--- a/modules/queue/queue_wrapped.go
+++ b/modules/queue/queue_wrapped.go
@@ -28,7 +28,6 @@ type WrappedQueueConfiguration struct {
}
type delayedStarter struct {
- lock sync.Mutex
internal Queue
underlying Type
cfg interface{}
@@ -89,6 +88,7 @@ func (q *delayedStarter) setInternal(atShutdown func(context.Context, func()), h
// WrappedQueue wraps a delayed starting queue
type WrappedQueue struct {
delayedStarter
+ lock sync.Mutex
handle HandlerFunc
exemplar interface{}
channel chan Data