Skip to content

Commit

Permalink
Merge pull request #19 from comento-backend-camp/feature/11
Browse files Browse the repository at this point in the history
[fix:#11] 필요 없는 lock 지정문 삭제
hyejungg authored Oct 8, 2021
2 parents d2a2af8 + f2d4c9f commit a1cbe50
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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))) {

0 comments on commit a1cbe50

Please sign in to comment.