Skip to content

Commit

Permalink
refactor: try-catch에 tryLock()이 포함되지 않도록 변경 (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
HiiWee authored Aug 29, 2024
1 parent 7ec6cbe commit 66f011c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public class DistributedLockAspect {
public Object around(ProceedingJoinPoint joinPoint, DistributedLock distributedLock) throws Throwable {
String key = getLockName(joinPoint, distributedLock);

lockProvider.tryLock(key);
try {
lockProvider.tryLock(key);
return joinPoint.proceed();
} finally {
lockProvider.unlock(key);
Expand Down

0 comments on commit 66f011c

Please sign in to comment.