Skip to content

Commit

Permalink
[fix:#11] 필요 없는 lock 지정문 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
hyejungg committed Oct 8, 2021
1 parent 1e159be commit f2d4c9f
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ public BookingService(BookingRepository bookingRepository, PerformanceService pe

public Booking saveBookging(final BookingDto reqBooking) {
RLock lock = redissonClient.getLock(SEAT_LOCK);
lock.lock(LEASE_TIME, TimeUnit.SECONDS);

Booking booking = null;
try {
if (!(lock.tryLock(WAIT_TIME, LEASE_TIME, TimeUnit.SECONDS))) {
Expand Down

0 comments on commit f2d4c9f

Please sign in to comment.