-
Notifications
You must be signed in to change notification settings - Fork 2
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
Refactor of AMQP-1.0 connector #29
Conversation
connector/amqp10/amqp10.go
Outdated
SendTimeout int64 | ||
ListenPrefetch int64 | ||
LinkFailureLimit int64 | ||
MaxParalelSendLimit int64 |
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.
spelling: parallel
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/Paralel/Parallel/g
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.
It's also in the config (around L156), not strictly only variables in the code.
connector/amqp10/amqp10.go
Outdated
defaultClientName = "localhost" | ||
defaultLinkFailureLimit = 20 | ||
defaultMaxParalelSend = 128 |
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.
spelling: parallel
connector/amqp10/amqp10.go
Outdated
|
||
if failure { | ||
conn.logger.Warn("Too many link failures in row, reconnecting") | ||
err := fmt.Errorf("") //conn.Reconnect("out", outchan, &wg) |
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.
I don't think this and the line after it make sense. Maybe some remnant from debugging?
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.
Yes indeed. The reconnect logic is missing. Will add it.
Currently used library is deprecated. This patch makes connector use Azure/go-amqp instead.
Currently used library is deprecated. This patch makes connector use Azure/go-amqp instead.