Signed-off-by: luoshi <luoshi@qmth.com.cn>
@@ -62,6 +62,7 @@ public class RedisConcurrentService implements ConcurrentService, RedisConstant
@Override
public Semaphore getSemaphore(@NotNull String name) {
RSemaphore semaphore = redissonClient.getSemaphore(name);
+ semaphore.trySetPermits(1);
return new Semaphore() {