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

Use slice for Subscriptions instead of map #131

Merged
merged 1 commit into from
Jun 13, 2023
Merged

Conversation

alsm
Copy link
Contributor

@alsm alsm commented May 24, 2023

Enumerating a map isn't deterministic so we can't guarantee an order to the subscribe packet sent to the server, as the response only contains a slice of values we need to know what order the subscriptions were sent in so that the responses can be correlated, using a slice and putting the topic as a property of the suboptions allows us to be sure of this.

#123

Enumerating a map isn't deterministic so we can't guarantee an order to
the subscribe packet sent to the server, as the response only contains
a slice of values we need to know what order the subscriptions were sent
in so that the responses can be correlated, using a slice and putting
the topic as a property of the suboptions allows us to be sure of this.

eclipse-paho#123
@alsm alsm merged commit c22f806 into eclipse-paho:master Jun 13, 2023
@alsm alsm deleted the topics branch June 13, 2023 07:07
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.

1 participant