Skip to content

Commit

Permalink
Merge pull request #188 from ionutab/master
Browse files Browse the repository at this point in the history
MqttClient does not have the protocol property
  • Loading branch information
cyberw authored Jul 12, 2024
2 parents 260e6cc + 5c1a3ae commit e9fb76d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust_plugins/users/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __init__(
self.on_publish = self._on_publish_cb
self.on_subscribe = self._on_subscribe_cb

if self.protocol == mqtt.MQTTv5:
if protocol == mqtt.MQTTv5:
self.on_disconnect = self._on_disconnect_cb_v5
self.on_connect = self._on_connect_cb_v5
else:
Expand Down

0 comments on commit e9fb76d

Please sign in to comment.