From af90af9602939bccd93076dfb24f7a500323cdbc Mon Sep 17 00:00:00 2001 From: JunYong Sun Date: Sat, 20 Jan 2024 20:25:35 +0900 Subject: [PATCH] =?UTF-8?q?[FEAT]=20=EC=B0=B8=EA=B0=80=EC=9E=90=20?= =?UTF-8?q?=EB=B3=84=20=EA=B2=BD=EB=A7=A4=EB=82=B4=EC=97=AD=20=EC=A0=80?= =?UTF-8?q?=EC=9E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dailyon/auctionservice/chat/scheduler/ChatScheduler.java | 2 +- .../auctionservice/repository/ReactiveRedisRepository.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/dailyon/auctionservice/chat/scheduler/ChatScheduler.java b/src/main/java/com/dailyon/auctionservice/chat/scheduler/ChatScheduler.java index 580bd1f..11bd1ba 100644 --- a/src/main/java/com/dailyon/auctionservice/chat/scheduler/ChatScheduler.java +++ b/src/main/java/com/dailyon/auctionservice/chat/scheduler/ChatScheduler.java @@ -26,7 +26,7 @@ public class ChatScheduler implements SchedulingConfigurer { private final ChatHandler chatHandler; private final AuctionService auctionService; private final BidService bidService; - private long countdown = 1 * 60 * 1000; + private long countdown = 1 * 30 * 1000; private Disposable jobDisposable; public ChatScheduler( diff --git a/src/main/java/com/dailyon/auctionservice/repository/ReactiveRedisRepository.java b/src/main/java/com/dailyon/auctionservice/repository/ReactiveRedisRepository.java index 3f85e94..da718fd 100644 --- a/src/main/java/com/dailyon/auctionservice/repository/ReactiveRedisRepository.java +++ b/src/main/java/com/dailyon/auctionservice/repository/ReactiveRedisRepository.java @@ -103,8 +103,8 @@ public Flux> getRemainBidInfos(Auction auctio String key = generateKey(auction.getId()); return reactiveRedisZSet.reverseRangeWithScores( key, - Range.from(Range.Bound.inclusive(0L)) - .to(Range.Bound.inclusive(((long) auction.getMaximumWinner() - 1)))); + Range.from(Range.Bound.inclusive((long) auction.getMaximumWinner() - 1)) + .to(Range.Bound.inclusive((-1L)))); } public Mono getTopScore(String auctionId, int maximum) {