Skip to content

Commit

Permalink
Merge pull request #1376 from bltb/cleanup-comments
Browse files Browse the repository at this point in the history
Remove outdated comments regarding thread keep alive.
  • Loading branch information
mattrjacobs committed Oct 7, 2016
2 parents 66f1347 + 4bc7b67 commit ad5e3f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ private void touchConfig() {
threadPool.setMaximumPoolSize(dynamicMaximumSize);
}

threadPool.setKeepAliveTime(properties.keepAliveTimeMinutes().get(), TimeUnit.MINUTES); // this doesn't really matter since we're not resizing
threadPool.setKeepAliveTime(properties.keepAliveTimeMinutes().get(), TimeUnit.MINUTES);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public abstract class HystrixThreadPoolProperties {

/* defaults */
static int default_coreSize = 10; // core size of thread pool
static int default_keepAliveTimeMinutes = 1; // minutes to keep a thread alive (though in practice this doesn't get used as by default we set a fixed size)
static int default_keepAliveTimeMinutes = 1; // minutes to keep a thread alive
static int default_maxQueueSize = -1; // size of queue (this can't be dynamically changed so we use 'queueSizeRejectionThreshold' to artificially limit and reject)
// -1 turns if off and makes us use SynchronousQueue
static int default_queueSizeRejectionThreshold = 5; // number of items in queue
Expand Down

0 comments on commit ad5e3f4

Please sign in to comment.