From f3a2af8f10175417bc0f679a5a0aa9bfca8ad1ce Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Wed, 1 Apr 2015 13:48:06 +0000 Subject: [PATCH] make job runner quantity configurable --- router/java/src/net/i2p/router/JobQueue.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/java/src/net/i2p/router/JobQueue.java b/router/java/src/net/i2p/router/JobQueue.java index b9be0d88b8..5acde51961 100644 --- a/router/java/src/net/i2p/router/JobQueue.java +++ b/router/java/src/net/i2p/router/JobQueue.java @@ -74,7 +74,7 @@ public class JobQueue { /** default max # job queue runners operating */ private final static int DEFAULT_MAX_RUNNERS = 1; - /** router.config parameter to override the max runners @deprecated unimplemented */ + /** router.config parameter to override the max runners */ private final static String PROP_MAX_RUNNERS = "router.maxJobRunners"; /** how frequently should we check and update the max runners */ @@ -300,7 +300,7 @@ public class JobQueue { public void allowParallelOperation() { _allowParallelOperation = true; - runQueue(RUNNERS); + runQueue(_context.getProperty(PROP_MAX_RUNNERS, RUNNERS)); } /** @deprecated do you really want to do this? */ -- GitLab