Skip to content

Commit

Permalink
Merge pull request #2210 from mikenester/bug-fix--class-picker-resets…
Browse files Browse the repository at this point in the history
…-user-count-on-edit-2

Second fix for --class-picker resetting user_count on edits
  • Loading branch information
cyberw authored Sep 20, 2022
2 parents 5c65cb3 + a02fd92 commit 8c0f255
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 8c0f255

Please sign in to comment.