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

Skip to content
Snippets Groups Projects
Commit 893d1bb4 authored by zzz's avatar zzz
Browse files

Job Queue: Only drop lookup jobs if lagged

parent 945988df
No related branches found
No related tags found
No related merge requests found
...@@ -286,9 +286,14 @@ public class JobQueue { ...@@ -286,9 +286,14 @@ public class JobQueue {
// we don't really *need* to answer DB lookup messages // we don't really *need* to answer DB lookup messages
// This is pretty lame, there's actually a ton of different jobs we // This is pretty lame, there's actually a ton of different jobs we
// could drop, but is it worth making a list? // could drop, but is it worth making a list?
if (cls == HandleFloodfillDatabaseLookupMessageJob.class) if (cls == HandleFloodfillDatabaseLookupMessageJob.class) {
return true; JobTiming jt = job.getTiming();
if (jt != null) {
long lag = _context.clock().now() - jt.getStartAfter();
if (lag > 2*1000L)
return true;
}
}
} }
return false; return false;
} }
......
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