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

fix issue with mqtt concurrent map write #8562

Merged
merged 2 commits into from
Dec 16, 2020
Merged

fix issue with mqtt concurrent map write #8562

merged 2 commits into from
Dec 16, 2020

Conversation

ssoroka
Copy link
Contributor

@ssoroka ssoroka commented Dec 14, 2020

closes #7581

Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

One suggestion but the code looks good!

@srebhan srebhan self-assigned this Dec 15, 2020
"github.com/eclipse/paho.mqtt.golang"
mqtt "github.com/eclipse/paho.mqtt.golang"
Copy link
Member

Choose a reason for hiding this comment

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

Could you please elaborate on why this is necessary!?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was automatically added by the formatting library, (I think goreturns, in this case). It doesn't like the implicit import of the mqtt package via a path that doesn't match the package name.

Copy link
Member

Choose a reason for hiding this comment

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

Ok so this was my "TIL". :-) Thanks for the explanation!

Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Looks good now, but I'm not sure why you alias the mqtt library in the test...

@srebhan srebhan added ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. area/mqtt labels Dec 16, 2020
@ssoroka ssoroka merged commit e39208d into master Dec 16, 2020
@ssoroka ssoroka deleted the mqtt-lock branch December 16, 2020 20:38
ssoroka added a commit that referenced this pull request Dec 16, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mqtt ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fatal error: concurrent map writes with MQTT plugin
2 participants