aboutsummaryrefslogtreecommitdiffstats
path: root/modules/queue/queue_channel.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-01-24 22:54:35 +0000
committerGitHub <noreply@github.com>2022-01-24 22:54:35 +0000
commitab7f70167100b69dc66f988d2df0bbd639f405be (patch)
tree26bb6c394a4ee46db9330d6226fe3a8c6b9382c1 /modules/queue/queue_channel.go
parent43c6b27716381dad9debd2ebbd9e1ae332af23b2 (diff)
downloadgitea-ab7f70167100b69dc66f988d2df0bbd639f405be.tar.gz
gitea-ab7f70167100b69dc66f988d2df0bbd639f405be.zip
Make WrappedQueues and PersistableChannelUniqueQueues Pausable (#18393)
Implements the Pausable interface on WrappedQueues and PersistableChannelUniqueQueues Reference #15928 Signed-off-by: Andrew Thornton art27@cantab.net
Diffstat (limited to 'modules/queue/queue_channel.go')
-rw-r--r--modules/queue/queue_channel.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/queue/queue_channel.go b/modules/queue/queue_channel.go
index 7de9c17c86..105388f421 100644
--- a/modules/queue/queue_channel.go
+++ b/modules/queue/queue_channel.go
@@ -93,7 +93,7 @@ func (q *ChannelQueue) Run(atShutdown, atTerminate func(func())) {
// Push will push data into the queue
func (q *ChannelQueue) Push(data Data) error {
if !assignableTo(data, q.exemplar) {
- return fmt.Errorf("Unable to assign data: %v to same type as exemplar: %v in queue: %s", data, q.exemplar, q.name)
+ return fmt.Errorf("unable to assign data: %v to same type as exemplar: %v in queue: %s", data, q.exemplar, q.name)
}
q.WorkerPool.Push(data)
return nil