From 22e35ef80abf9cf23fc296d8bd40862f8ca9e761 Mon Sep 17 00:00:00 2001 From: YuTian <2953516620@qq.com> Date: Mon, 22 Jul 2024 19:22:09 +0800 Subject: [PATCH] v2.5.2 --- .../java/com/io/yutian/aulib/redis/RedisCacheSyncTimer.java | 4 ++-- src/main/resources/plugin.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/io/yutian/aulib/redis/RedisCacheSyncTimer.java b/src/main/java/com/io/yutian/aulib/redis/RedisCacheSyncTimer.java index 0a7e46e..a7e1d60 100644 --- a/src/main/java/com/io/yutian/aulib/redis/RedisCacheSyncTimer.java +++ b/src/main/java/com/io/yutian/aulib/redis/RedisCacheSyncTimer.java @@ -36,7 +36,7 @@ public class RedisCacheSyncTimer { try (Jedis jedis = jedisGetter.getRedis()) { long lockResult = jedis.setnx(lockKey, "locked"); if (lockResult != 1) { - break; + continue; } jedis.expire(lockKey, LOCK_EXPIRE_SECONDS); for (Map.Entry, RedisCacheSynchronizer> entry1 : entry.getValue().getSynchronizers().entrySet()) { @@ -65,7 +65,7 @@ public class RedisCacheSyncTimer { } } } - }.runTaskTimerAsynchronously(AuLib.inst(), 60L, 5 * 60 * 20L); + }.runTaskTimerAsynchronously(AuLib.inst(), 1200L, 5 * 60 * 20L); } public void registerSynchronizer(Plugin plugin, IJedisGetter jedisGetter, Pair key, RedisCacheSynchronizer synchronizer) { diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index cb49f25..7e89db6 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: AuLib main: com.io.yutian.aulib.AuLib -version: 2.5.1 +version: 2.5.2 api-version: 1.18 author: SuperYuTian \ No newline at end of file