diff options
author | Valery Piashchynski <[email protected]> | 2021-08-11 11:45:24 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-11 11:45:24 +0300 |
commit | 3e2e9fbd9650c44d57a41a9dc702fe93aad2b77f (patch) | |
tree | 38f25c3c0679e8510b896d001d1b7dccf21c4bd8 /plugins/jobs/drivers/amqp | |
parent | d449d9d5aec1eec6d494064299feb1551f88ffe2 (diff) |
Replace all 'localhost' with '127.0.0.1'. Fix default configuration and
other small bugs.
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/drivers/amqp')
-rw-r--r-- | plugins/jobs/drivers/amqp/config.go | 2 | ||||
-rw-r--r-- | plugins/jobs/drivers/amqp/consumer.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/jobs/drivers/amqp/config.go b/plugins/jobs/drivers/amqp/config.go index 37f5c1c4..3fb0d066 100644 --- a/plugins/jobs/drivers/amqp/config.go +++ b/plugins/jobs/drivers/amqp/config.go @@ -57,6 +57,6 @@ func (c *Config) InitDefault() { func (c *GlobalCfg) InitDefault() { if c.Addr == "" { - c.Addr = "amqp://guest:guest@localhost:5672/" + c.Addr = "amqp://guest:[email protected]:5672/" } } diff --git a/plugins/jobs/drivers/amqp/consumer.go b/plugins/jobs/drivers/amqp/consumer.go index 36a16bcd..d7425858 100644 --- a/plugins/jobs/drivers/amqp/consumer.go +++ b/plugins/jobs/drivers/amqp/consumer.go @@ -181,7 +181,7 @@ func FromPipeline(pipeline *pipeline.Pipeline, log logger.Logger, cfg config.Con exchangeName: pipeline.String(exchangeKey, "amqp.default"), prefetch: pipeline.Int(prefetch, 10), priority: int64(pipeline.Int(priority, 10)), - exclusive: pipeline.Bool(exclusive, true), + exclusive: pipeline.Bool(exclusive, false), multipleAck: pipeline.Bool(multipleAsk, false), requeueOnFail: pipeline.Bool(requeueOnFail, false), requeueCh: make(chan *Item, 1000), |