This commit is contained in:
YuTian 2024-07-23 16:22:55 +08:00
parent 1148cdbb2e
commit f4ba9d0285

View File

@ -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;