From b83dd412e238529548bfd25ed8a9050a648d5d62 Mon Sep 17 00:00:00 2001 From: yxxnghwan Date: Mon, 9 Oct 2023 17:52:28 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=B6=84=EC=82=B0=EB=9D=BD=20=ED=82=A4?= =?UTF-8?q?=20placeId=EB=A7=8C=20=EC=9E=A1=EB=8F=84=EB=A1=9D=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kagongsillok/bookmark/application/BookmarkService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/prography/kagongsillok/bookmark/application/BookmarkService.java b/src/main/java/org/prography/kagongsillok/bookmark/application/BookmarkService.java index c8b92b8..7b0f87b 100644 --- a/src/main/java/org/prography/kagongsillok/bookmark/application/BookmarkService.java +++ b/src/main/java/org/prography/kagongsillok/bookmark/application/BookmarkService.java @@ -11,12 +11,12 @@ @RequiredArgsConstructor public class BookmarkService { - public static final String BOOKMARK_LOCK_FORMAT = "lockBookmark::placeId=%d::memberId=%d"; + public static final String BOOKMARK_LOCK_FORMAT = "lockBookmarkToggle::placeId=%d"; private final BookmarkToggleSwitch bookmarkToggleSwitch; private final RedissonClient redissonClient; public void toggle(final Long placeId, final Long memberId) { - final RLock lock = redissonClient.getLock(String.format(BOOKMARK_LOCK_FORMAT, placeId, memberId)); + final RLock lock = redissonClient.getLock(String.format(BOOKMARK_LOCK_FORMAT, placeId)); try { final boolean available = lock.tryLock(15, 1, TimeUnit.SECONDS);