From 224ff2761f452fb411c504431daa54dbbec81383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thierry=20Yg=C3=A9?= Date: Wed, 15 Sep 2021 16:56:41 +0200 Subject: [PATCH] #1884 renaming as suggested --- locust/runners.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locust/runners.py b/locust/runners.py index f4ecd7a31d..4e3a090a2c 100644 --- a/locust/runners.py +++ b/locust/runners.py @@ -638,7 +638,7 @@ def on_quitting(environment, **kw): self.environment.events.quitting.add_listener(on_quitting) - def rebalancingEnabled(self): + def rebalancing_enabled(self) -> bool: return self.environment.parsed_options and self.environment.parsed_options.enable_rebalancing @property @@ -883,7 +883,7 @@ def client_listener(self): "Client %r reported as ready. Currently %i clients ready to swarm." % (worker_node_id, len(self.clients.ready + self.clients.running + self.clients.spawning)) ) - if self.rebalancingEnabled() and self.state == STATE_RUNNING and self.spawning_completed: + if self.rebalancing_enabled() and self.state == STATE_RUNNING and self.spawning_completed: self.start(self.target_user_count, self.spawn_rate) # emit a warning if the worker's clock seem to be out of sync with our clock # if abs(time() - msg.data["time"]) > 5.0: