Skip to content

Commit

Permalink
Fix: Use named parameters for concurrent message listeners instead of…
Browse files Browse the repository at this point in the history
… positional.
  • Loading branch information
cyberw committed Mar 26, 2024
1 parent 35850b2 commit 061552f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ def client_listener(self) -> NoReturn:
if not concurrent:
listener(environment=self.environment, msg=msg)
else:
gevent.spawn(listener, self.environment, msg)
gevent.spawn(listener, environment=self.environment, msg=msg)
except Exception:
logging.error(f"Uncaught exception in handler for {msg.type}\n{traceback.format_exc()}")

Expand Down

0 comments on commit 061552f

Please sign in to comment.