From 76f5d17f81bbdc7a39cfec37e0614468efb9aa2d Mon Sep 17 00:00:00 2001 From: kennycud Date: Fri, 8 Nov 2024 09:03:36 -0800 Subject: [PATCH] Reduced connection error to a warning. Removed unnecessary return value. Another file needed to be added to the last commit; here it is. --- .../controller/hsqldb/HSQLDBDataCacheManager.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/qortal/controller/hsqldb/HSQLDBDataCacheManager.java b/src/main/java/org/qortal/controller/hsqldb/HSQLDBDataCacheManager.java index 33950a9c0..0f678a3cd 100644 --- a/src/main/java/org/qortal/controller/hsqldb/HSQLDBDataCacheManager.java +++ b/src/main/java/org/qortal/controller/hsqldb/HSQLDBDataCacheManager.java @@ -8,7 +8,6 @@ public class HSQLDBDataCacheManager extends Thread{ - private ArbitraryResourceCache cache = ArbitraryResourceCache.getInstance(); private HSQLDBRepository respository; public HSQLDBDataCacheManager(HSQLDBRepository respository) { @@ -19,11 +18,10 @@ public HSQLDBDataCacheManager(HSQLDBRepository respository) { public void run() { Thread.currentThread().setName("HSQLDB Data Cache Manager"); - this.cache - = HSQLDBCacheUtils.startCaching( - Settings.getInstance().getDbCacheThreadPriority(), - Settings.getInstance().getDbCacheFrequency(), - this.respository + HSQLDBCacheUtils.startCaching( + Settings.getInstance().getDbCacheThreadPriority(), + Settings.getInstance().getDbCacheFrequency(), + this.respository ); } }