Skip to content
Snippets Groups Projects

Resolve "Investigate GitLab-CI services don't reach each other"

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -90,7 +90,7 @@ func connect(addr string) (*amqp.Connection, error) {
@@ -90,7 +90,7 @@ func connect(addr string) (*amqp.Connection, error) {
for i := 0; i < retries; i++ {
for i := 0; i < retries; i++ {
conn, err := amqp.Dial(addr)
conn, err := amqp.Dial(addr)
if err == nil {
if err == nil {
logrus.Debug("Connected to RabbitMQ")
logrus.Info("Connected to RabbitMQ")
return conn, nil
return conn, nil
}
}
logrus.Errorf("could not connect to RabbitMQ with error: %s. Retrying in 2 seconds.", err.Error())
logrus.Errorf("could not connect to RabbitMQ with error: %s. Retrying in 2 seconds.", err.Error())
Loading