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

wip

parent 1c7330ec
No related branches found
No related tags found
1 merge request!773Resolve "Investigate GitLab-CI services don't reach each other"
......@@ -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.
Finish editing this message first!
Please register or to comment