I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 14ea6d8d authored by zzz's avatar zzz
Browse files

delay multiple ExploreJobs slightly

parent 8e0dbf31
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,13 @@ class StartExplorersJob extends JobImpl {
if (_log.shouldLog(Log.DEBUG))
_log.debug("Keys to explore during this run: " + toExplore);
_facade.removeFromExploreKeys(toExplore);
long delay = 0;
for (Hash key : toExplore) {
getContext().jobQueue().addJob(new ExploreJob(getContext(), _facade, key));
ExploreJob j = new ExploreJob(getContext(), _facade, key);
if (delay > 0)
j.getTiming().setStartAfter(getContext().clock().now() + delay);
getContext().jobQueue().addJob(j);
delay += 200;
}
}
long delay = getNextRunDelay();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment