From 90644900c63865a92144bc17430e4b521751ad80 Mon Sep 17 00:00:00 2001 From: skynetcap <100323448+skynetcap@users.noreply.github.com> Date: Wed, 14 Feb 2024 09:35:20 -0800 Subject: [PATCH] Adjust ObCrankerApplication task frequency The frequency of running the task in ObCrankerApplication has been changed. Instead of every 5 seconds, the task will now run every 2500 milliseconds, enhancing efficiency and performance. --- .../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 dc23db3..10f2191 100644 --- a/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java +++ b/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java @@ -72,7 +72,7 @@ public void crankEventHeapLoop() { log.error("Error cranking SOL/USDC: {}", ex.getMessage(), ex); } - }, 0, 5, TimeUnit.SECONDS); + }, 0, 2500, TimeUnit.MILLISECONDS); scheduler.scheduleAtFixedRate(() -> { try {