Skip to content

Commit

Permalink
Removing the _update_user_dispatcher method from web.py as it isn't n…
Browse files Browse the repository at this point in the history
…ecessary and causes the user count to reset
  • Loading branch information
mikenester committed Sep 20, 2022
1 parent 5c65cb3 commit a02fd92
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions locust/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,6 @@ def swarm() -> Response:
else:
self._update_shape_class(form_data_shape_class_name)

# Setting user dispatchers to None so that the runners recreate the
# UserDistpatcher with the appropriate user classes
self._reset_users_dispatcher()

parsed_options_dict = vars(environment.parsed_options) if environment.parsed_options else {}
run_time = None
for key, value in request.form.items():
Expand Down Expand Up @@ -583,6 +579,3 @@ def _update_user_classes(self, user_classes):

def _stop_runners(self):
self.environment.runner.stop()

def _reset_users_dispatcher(self):
self.environment.runner._users_dispatcher = None

0 comments on commit a02fd92

Please sign in to comment.