Skip to content

Commit

Permalink
#346 [feat] Lock key에서 signature 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
sohyundoh committed Jun 11, 2024
1 parent 49181a1 commit 19c3459
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public void uniqueMoimNameCut() {

@Around("uniqueMoimNameCut()")
public Object validateUniqueName(final ProceedingJoinPoint joinPoint) throws Throwable {
final String key = MOIM_NAME_LOCK + joinPoint.getSignature().getName();
final RLock lock = redissonClient.getLock(key);
final RLock lock = redissonClient.getLock(MOIM_NAME_LOCK);
try {
checkAvailability(lock.tryLock(3, 4, TimeUnit.SECONDS));
return aopForTransaction.proceed(joinPoint);
Expand Down

0 comments on commit 19c3459

Please sign in to comment.