summaryrefslogtreecommitdiffstats
path: root/modules/queue
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-09-03 11:20:57 +0100
committerGitHub <noreply@github.com>2021-09-03 11:20:57 +0100
commit6c125e979713259f41e99ef738a612318c69fbc5 (patch)
tree86a2f9bbb8bd97ab372c01380e7b8ee554dababb /modules/queue
parent219dec030daf89f0a5a23217c0439d1b1adc9259 (diff)
downloadgitea-6c125e979713259f41e99ef738a612318c69fbc5.tar.gz
gitea-6c125e979713259f41e99ef738a612318c69fbc5.zip
Use immediate queues in integration tests and ensure that immediate (#16927)
queue type is also used for unique queues. Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/queue')
-rw-r--r--modules/queue/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/queue/setting.go b/modules/queue/setting.go
index 0e6ff3a0a8..caaf123d42 100644
--- a/modules/queue/setting.go
+++ b/modules/queue/setting.go
@@ -75,7 +75,7 @@ func CreateUniqueQueue(name string, handle HandlerFunc, exemplar interface{}) Un
return nil
}
- if len(q.Type) > 0 && q.Type != "dummy" && !strings.HasPrefix(q.Type, "unique-") {
+ if len(q.Type) > 0 && q.Type != "dummy" && q.Type != "immediate" && !strings.HasPrefix(q.Type, "unique-") {
q.Type = "unique-" + q.Type
}