summaryrefslogtreecommitdiff
path: root/plugins/jobs/brokers/amqp/rabbit.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-07-11 10:11:22 +0300
committerValery Piashchynski <[email protected]>2021-07-11 10:11:22 +0300
commit589f759cc2411319adbca2ece0dbe212407d1eba (patch)
tree2fbea4a6033d65813c41fd80f6339a524b46c9b2 /plugins/jobs/brokers/amqp/rabbit.go
parentcb2665d93ad7abe1ab30508ff0e2bd4d0bc379ea (diff)
Update informer interface to return slice of pointers (do not over-copy
the Stat structure). Make amqp Push concurrent safe. Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/brokers/amqp/rabbit.go')
-rw-r--r--plugins/jobs/brokers/amqp/rabbit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jobs/brokers/amqp/rabbit.go b/plugins/jobs/brokers/amqp/rabbit.go
index f21fe8de..b5e73a9d 100644
--- a/plugins/jobs/brokers/amqp/rabbit.go
+++ b/plugins/jobs/brokers/amqp/rabbit.go
@@ -59,7 +59,7 @@ func (j *JobsConsumer) initRabbitMQ() error {
return errors.E(op, err)
}
- return nil
+ return channel.Close()
}
func (j *JobsConsumer) listener(deliv <-chan amqp.Delivery) {