Skip to content

Commit 061552f

Browse files
committed
Fix: Use named parameters for concurrent message listeners instead of positional.
1 parent 35850b2 commit 061552f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: locust/runners.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ def client_listener(self) -> NoReturn:
11431143
if not concurrent:
11441144
listener(environment=self.environment, msg=msg)
11451145
else:
1146-
gevent.spawn(listener, self.environment, msg)
1146+
gevent.spawn(listener, environment=self.environment, msg=msg)
11471147
except Exception:
11481148
logging.error(f"Uncaught exception in handler for {msg.type}\n{traceback.format_exc()}")
11491149

0 commit comments

Comments
 (0)