From 90a4d1eaf227b53e8b04141b589e25a64d59a81b Mon Sep 17 00:00:00 2001 From: skynetcap <100323448+skynetcap@users.noreply.github.com> Date: Sat, 3 Feb 2024 21:38:00 -0800 Subject: [PATCH] Reduce sleep time in ObCrankerApplication thread The Thread.sleep time in ObCrankerApplication.java has been halved from 500 milliseconds to 250 milliseconds. This improves the application's response time by allowing it to process events more frequently. --- .../java/markets/arcana/obcranker/ObCrankerApplication.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java b/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java index bb765ec..dc23db3 100644 --- a/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java +++ b/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java @@ -91,7 +91,7 @@ public void crankEventHeapLoop() { log.info("No events found to consume."); } try { - Thread.sleep(500); + Thread.sleep(250); } catch (InterruptedException e) { log.error("Error consuming: {}", e.getMessage()); }