Skip to content

Commit

Permalink
Merge pull request #8 from vxmark/master
Browse files Browse the repository at this point in the history
Fixed load balancing of workers
  • Loading branch information
somdoron committed Sep 13, 2019
2 parents 082d20f + 2bbbea2 commit 378dad9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public NetMQFrame Next()
return null;

// get the oldest worker
var worker = m_workers.Last();
var worker = m_workers[0];
// remove it from list
m_workers.Remove(worker);
m_workers.RemoveAt(0);

return worker.Identity;
}
Expand Down

0 comments on commit 378dad9

Please sign in to comment.