Skip to content

Commit

Permalink
type: revise into natural sentences
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonCheolGit committed Mar 23, 2024
1 parent 8e17ef6 commit da7b089
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class RedisDistributedLocker implements DistributedLocker {
@Override
public boolean acquireLock(DistributedLockDO distributedLockDO) {
try (Jedis jedis = JedisPooledFactory.getJedisInstance()) {
//Don't need retry,if can't acquire the lock,let the other get the lock
//Don't need to retry, if you can't acquire the lock,let the other get the lock
String result = jedis.set(distributedLockDO.getLockKey(), distributedLockDO.getLockValue(), SetParams.setParams().nx().px(distributedLockDO.getExpireTime()));
return SUCCESS.equalsIgnoreCase(result);
} catch (Exception ex) {
Expand Down

0 comments on commit da7b089

Please sign in to comment.