Skip to content

Commit 9bda566

Browse files
authored
Merge pull request #3252 from ionutab/master
fix: MQTT client_id and protocol not passed down to Client
2 parents ca09516 + dae7a5f commit 9bda566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

locust/contrib/mqtt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __init__(
101101
if not client_id:
102102
client_id = f"locust-{_generate_random_id(16)}"
103103

104-
super().__init__(*args, **kwargs)
104+
super().__init__(*args, client_id=client_id, protocol=protocol, **kwargs)
105105
self.environment = environment
106106
# we need to set client_id in case the broker assigns one to us
107107
self.client_id = client_id

0 commit comments

Comments
 (0)