Browse Source

Remove unused lock (#9709)

tags/v1.10.5
zeripath 4 years ago
parent
commit
960ac36099
No account linked to committer's email address
2 changed files with 3 additions and 1 deletions
  1. 2
    0
      modules/queue/queue_disk_channel.go
  2. 1
    1
      modules/queue/queue_wrapped.go

+ 2
- 0
modules/queue/queue_disk_channel.go View File

@@ -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{}
}


+ 1
- 1
modules/queue/queue_wrapped.go View File

@@ -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

Loading…
Cancel
Save