Skip to content
Snippets Groups Projects
Commit 943ed45a authored by sinur's avatar sinur
Browse files

Reduced delay

parent ef6818ee
No related branches found
No related tags found
No related merge requests found
......@@ -109,15 +109,15 @@ public abstract class AbstractNode extends UntypedActor implements Serializable
//Broadcast
int i = 0;
for (ActorRef act : getKnownNeighbors().values()) {
act.tell(new SnapShotBegin(this.currentSnapshotToken), self());
if(i % 3 == 0){
try {
//Add a little delay now and then
Thread.sleep(3000);
Thread.sleep(500);
} catch (InterruptedException ex) {
Exceptions.printStackTrace(ex);
}
}
act.tell(new SnapShotBegin(this.currentSnapshotToken), self());
}
return this.snapshot.promise();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment