Skip to content
Snippets Groups Projects
Commit 09ce69f7 authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark
Browse files

wip

parent bc519cde
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !773. Comments created here will be created in the context of that merge request.
......@@ -88,9 +88,10 @@ func connect(addr string) (*amqp.Connection, error) {
for i := 0; i < retries; i++ {
conn, err := amqp.Dial(addr)
if err == nil {
logrus.Debug("Connected to RabbitMQ")
return conn, nil
}
logrus.Info("could not connect to RabbitMQ. Retrying in 2 seconds.")
logrus.Error("could not connect to RabbitMQ. Retrying in 2 seconds.")
time.Sleep(2 * time.Second)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment