Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-v committed Jun 24, 2024
1 parent 4e9bf91 commit 7f18be2
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,20 @@ protected void onTick() {
return;
}

// Spread gossips

nextGossipMembers();

for (int i = 0, n = gossipMembers.size(); i < n; i++) {
spreadGossipsTo(period, gossipMembers.get(i));
}

// Sweep gossips

nextGossipsToRemove(period);

for (String gossipId : gossipsToRemove) {
gossips.remove(gossipId);
for (int i = 0, n = gossipsToRemove.size(); i < n; i++) {
gossips.remove(gossipsToRemove.get(i));
}
}

Expand Down

0 comments on commit 7f18be2

Please sign in to comment.