Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-v committed Jul 8, 2024
1 parent 75db248 commit f1a88ec
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,13 @@ void nextGossipMembers() {
return;
}

for (int i = 0, limit = Math.min(gossipFanout, size); i < limit; ) {
final Member member = remoteMembers.get(random.nextInt(remoteMembers.size()));
if (!gossipMembers.contains(member)) {
gossipMembers.add(member);
i++;
}
}
// for (int i = 0, limit = Math.min(gossipFanout, size); i < limit; ) {
// final Member member = remoteMembers.get(random.nextInt(remoteMembers.size()));
// if (!gossipMembers.contains(member)) {
// gossipMembers.add(member);
// i++;
// }
// }
}

void shuffle() {
Expand Down

0 comments on commit f1a88ec

Please sign in to comment.