Skip to content
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

Merged
merged 2 commits into from
Apr 30, 2024
Merged

Conversation

paramite
Copy link
Member

Currently used library is deprecated. This patch makes connector use Azure/go-amqp instead.

SendTimeout int64
ListenPrefetch int64
LinkFailureLimit int64
MaxParalelSendLimit int64

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spelling: parallel

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Paralel/Parallel/g

Copy link
Contributor

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.

defaultClientName = "localhost"
defaultLinkFailureLimit = 20
defaultMaxParalelSend = 128

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spelling: parallel


if failure {
conn.logger.Warn("Too many link failures in row, reconnecting")
err := fmt.Errorf("") //conn.Reconnect("out", outchan, &wg)
Copy link
Contributor

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?

Copy link
Member Author

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.

connector/amqp10/amqp10.go Show resolved Hide resolved
Currently used library is deprecated. This patch makes connector use
Azure/go-amqp instead.
@paramite paramite merged commit ed39d5d into infrawatch:master Apr 30, 2024
1 check passed
@paramite paramite mentioned this pull request May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants