Skip to content

Commit

Permalink
Runnable runs on the delegate ExecutorService
Browse files Browse the repository at this point in the history
Fixes issue where runnable was running on the RateLimitExecutorDelayThread thread, allowing only one request per rate limit to go through.
  • Loading branch information
robmarsh committed Jul 14, 2017
1 parent 39468e8 commit eb81d7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void run() {
while (!delegate.isShutdown()) {
this.rateLimiter.acquire();
Runnable r = queue.take();
r.run();
delegate.execute(r);
}
} catch (InterruptedException ie) {
LOG.info("Interrupted", ie);
Expand Down

0 comments on commit eb81d7e

Please sign in to comment.