Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uneven balancing #865

Merged
merged 1 commit into from
Dec 16, 2020
Merged

Conversation

yvanoers
Copy link
Collaborator

Fixes uneven balancing, reported in #842 .
The actual fix is in agent.go line 717.
Also renamed nameIndex to names, it is better suited to what it holds.
Amended a test to verify the balancing. This test might result a false negative, because it is testing randomness.

Rename nameIndex var to names
Copy link
Member

@vcastellm vcastellm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@vcastellm vcastellm merged commit 2936362 into distribworks:master Dec 16, 2020
@yvanoers yvanoers deleted the fix-uneven-balancing branch February 4, 2021 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants