Skip to content

Commit

Permalink
Reduce sleep time in ObCrankerApplication thread
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
skynetcap committed Feb 4, 2024
1 parent 1fc845d commit 90a4d1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 90a4d1e

Please sign in to comment.