-
Notifications
You must be signed in to change notification settings - Fork 14
reopen channel, retry publish #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: kuba-- <kuba@sourced.tech>
Signed-off-by: kuba-- <kuba@sourced.tech>
amqp/amqp.go
Outdated
@@ -84,6 +85,7 @@ func New(url string) (queue.Broker, error) { | |||
} | |||
|
|||
b := &Broker{ | |||
mut: sync.RWMutex{}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since mut
is not a pointer the zero value is already sync.RWMutex{}
, so you can remove this line
amqp/amqp_test.go
Outdated
@@ -13,6 +15,20 @@ import ( | |||
"github.com/stretchr/testify/suite" | |||
) | |||
|
|||
// Pilosa tests require running docker. If `docker ps` command returned an error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Pilosa/AMQP/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM when tests pass
Appveyor build failed (WHAT!?):
|
Signed-off-by: kuba-- <kuba@sourced.tech>
Signed-off-by: kuba-- <kuba@sourced.tech>
Ok, now we can merge. |
amqp/amqp.go
Outdated
break | ||
} | ||
|
||
// b.mut.Lock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need those locks or can we delete the lines? Same in b.chErrors
block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, my bad - leftovers
The AppVeyor problem with rabbit happens from time to time. There's already an issue opened to take a look. #10 |
Signed-off-by: kuba-- <kuba@sourced.tech>
Closes: src-d/borges#297
Publish
if we connection dropped in a meantime.