Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASweb-backend-go
Commits
eb10488c
Commit
eb10488c
authored
Mar 20, 2020
by
Sonja Happ
Browse files
check if AMQP host is set before attempting to connect
parent
a37608c6
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
start.go
View file @
eb10488c
...
...
@@ -208,11 +208,13 @@ func main() {
panic
(
err
)
}
// create amqp URL based on username, password and host
amqpurl
:=
"amqp://"
+
amqpuser
+
":"
+
amqppass
+
"@"
+
amqphost
err
=
connectAMQP
(
amqpurl
,
api
)
if
err
!=
nil
{
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment