summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-12 17:30:09 +0300
committerValery Piashchynski <[email protected]>2021-08-12 17:30:09 +0300
commitde378e7698db896b8fd16f628c7d89689c8371d0 (patch)
treefbc55cc6fb2eeb28d1e051ac1d0b6ab427682085 /plugins
parenta2d9f341ae1b49d50cb47e54a627581415823ab0 (diff)
Update AMQP driver defaults
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/jobs/drivers/amqp/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/jobs/drivers/amqp/config.go b/plugins/jobs/drivers/amqp/config.go
index 73482d4d..c5e985a5 100644
--- a/plugins/jobs/drivers/amqp/config.go
+++ b/plugins/jobs/drivers/amqp/config.go
@@ -47,6 +47,10 @@ func (c *Config) InitDefault() {
c.Exchange = "amqp.default"
}
+ if c.Queue == "" {
+ c.Queue = "default"
+ }
+
if c.Prefetch == 0 {
c.Prefetch = 10
}