-
Notifications
You must be signed in to change notification settings - Fork 45
Fix blocking, add support of argument table #14
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
Update to latest version
feat(all): add support for headers with ampq.Table arguments refact(example): refactor basic example to send continuously messages for reconnection testing
I'll review this |
// return from routine to launch reconnect process | ||
return | ||
case blocking := <-chanBlocking: | ||
c.blocking <- blocking |
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.
this will block forever in case if user is not reading c.blocking
, previously it had fallback with default case
case blocking := <-chanBlocking:
select {
case c.blocking <- blocking:
default:
}
}
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.
Ok sorry, I was wondering what the purpose of the inner select was, it's fixed.
return | ||
case blocking := <-chanBlocking: | ||
select { | ||
case c.blocking <- blocking: |
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.
So pushing in a channel that is full inside a select goes to default, is that right ?
LGTM, someone from @assembla/developers should merge this |
Closes #12 blocking issue
Closes #13 support of header table
Refactor basic example to send messages at fixed rate to be able to test reconnection.