From f4ba9d0285b74697e1cfde180389b2261ebfbd7d Mon Sep 17 00:00:00 2001 From: YuTian <2953516620@qq.com> Date: Tue, 23 Jul 2024 16:22:55 +0800 Subject: [PATCH] v2.6 --- .../java/com/io/yutian/aulib/redis/RedisCacheSyncTimer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 eb2e5e0..a7e1d60 100644 --- a/src/main/java/com/io/yutian/aulib/redis/RedisCacheSyncTimer.java +++ b/src/main/java/com/io/yutian/aulib/redis/RedisCacheSyncTimer.java @@ -33,7 +33,7 @@ public class RedisCacheSyncTimer { PluginInfo pluginInfo = entry.getValue(); String lockKey = LOCK_KEY + "_" + plugin.getName(); IJedisGetter jedisGetter = pluginInfo.getJedisGetter(); - try (Jedis jedis = jedisGetter.getRedis()) {ยท + try (Jedis jedis = jedisGetter.getRedis()) { long lockResult = jedis.setnx(lockKey, "locked"); if (lockResult != 1) { continue;