Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed May 15, 2023
1 parent 721196b commit 6ebf9b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locust_plugins/listeners.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def __init__(self, env: locust.env.Environment):
)
Timescale.first_instance = False
# make sure we're ready to receive the run_id message immediately
if self.env.runner is not None:
self.env.runner.register_message("run_id", self.set_run_id)
if env.runner is not None:
env.runner.register_message("run_id", self.set_run_id)

self.env = env
self._samples: List[dict] = []
Expand Down

0 comments on commit 6ebf9b3

Please sign in to comment.