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
3dcab49b
Commit
3dcab49b
authored
Oct 12, 2020
by
Sonja Happ
Browse files
AMQP: remove defer statement
parent
bfcc8983
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
amqp/amqpclient.go
View file @
3dcab49b
...
...
@@ -73,8 +73,6 @@ func ConnectAMQP(uri string) error {
return
fmt
.
Errorf
(
"AMQP: failed to connect to RabbitMQ broker %v, error: %v"
,
uri
,
err
)
}
defer
client
.
connection
.
Close
()
// create channel
client
.
channel
,
err
=
client
.
connection
.
Channel
()
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
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