Commit eb10488c authored by Sonja Happ's avatar Sonja Happ
Browse files

check if AMQP host is set before attempting to connect

parent a37608c6
......@@ -208,12 +208,14 @@ func main() {
panic(err)
}
if amqphost != "" {
// create amqp URL based on username, password and host
amqpurl := "amqp://" + amqpuser + ":" + amqppass + "@" + amqphost
err = connectAMQP(amqpurl, api)
if err != nil {
panic(err)
}
}
// server at port 4000 to match frontend's redirect path
r.Run(":" + port)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment