don't log InterruptedException during threadPool shutdown

This commit is contained in:
James Seibel
2025-03-29 20:11:31 -05:00
parent 5d7c043d06
commit 5597044604
@@ -78,9 +78,11 @@ public class RateLimitedThreadPoolExecutor extends ThreadPoolExecutor
long runTime = System.nanoTime() - this.runStartTime.get();
Thread.sleep(TimeUnit.NANOSECONDS.toMillis((long) (runTime / this.runTimeRatioConfig.get() - runTime)));
}
catch (InterruptedException e)
catch (InterruptedException ignore)
{
throw new RuntimeException(e);
// if this thread is interrupted that means the
// thread pool is being shut down,
// we don't need to log that.
}
}