Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class SeatConstants {
public static final String SEAT_CACHE_KEY = "seat";
public static final String PRE_RESERVE_SEAT_KEY = "seat-ttl";
public static final String CACHE_SCHEDULER_LOCK_KEY = "SchedulerLock";
public final static String PRE_RESERVE_EXPIRE_LOCK_KEY = "PreReserveLock:";
public static final String PRE_RESERVE_EXPIRE_LOCK_KEY = "PreReserveLock:";


public static int PRE_RESERVE_TTL;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void onMessage(CharSequence channel, String expiredKey) {

String scheduleId = expiredKey.split(":")[1].replaceAll("[{}]", "");
String seatId = expiredKey.split(":")[2];
String lockKey = CACHE_SCHEDULER_LOCK_KEY + ":" + seatId;
String lockKey = PRE_RESERVE_EXPIRE_LOCK_KEY + ":" + seatId;

try {
boolean executed = lockService.executeWithLock(lockKey, 0, LOCK_TIMEOUT, () -> {
Expand Down
Loading