You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Closing this as the underlying issue was corrected some time ago (and included in the last release). Subscribe now contains Subscriptions []SubscribeOptions.
Version: 0.10.0
Client.Subscribe
expects a map containing subscription topics as keys:Later, these topics are sent to MQTT broker using a for-range loop:
for-range loop over a map is specified to have no consistent order ("The iteration order over maps is not specified and is not guaranteed to be the same from one iteration to the next."). Thus, the order in which topics are sent to broker is unknown. There is no way, one could correlate order of suback reasons to subscribed topics:
The text was updated successfully, but these errors were encountered: