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!: Remove Connect from ConnectionError::StateError #541

Merged
merged 2 commits into from Dec 16, 2022

Conversation

h3nill
Copy link
Member

@h3nill h3nill commented Dec 14, 2022

ConnectionError has a variant named ConnectionRefused which should be used instead.

@h3nill h3nill changed the title refactor: remove ConnectionRefused from ConnectionError because StateError already has a similar thing refactor!: remove ConnectionRefused from ConnectionError because StateError already has a similar thing Dec 14, 2022
@de-sh
Copy link
Member

de-sh commented Dec 15, 2022

This seems like the opposite of what we should be doing. Since connection refusals have nothing to do with MQTT state, we have to remove the Connect variant from there.

@h3nill h3nill changed the title refactor!: remove ConnectionRefused from ConnectionError because StateError already has a similar thing refactor!: Remove Connect from ConnectionError::StateError Dec 16, 2022
@h3nill h3nill requested a review from de-sh December 16, 2022 10:36
@tekjar tekjar merged commit f10365e into main Dec 16, 2022
@tekjar tekjar deleted the fix-connectionerror branch December 16, 2022 12:33
carlocorradini pushed a commit to carlocorradini/rumqtt that referenced this pull request Aug 3, 2023
…eamio#541)

* refactor!: remove `Connect` from `ConnectionError::StateError`

* fix clippy warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants