Skip to content

Commit

Permalink
Merge pull request #39 from lotteon2/feat/auction-history
Browse files Browse the repository at this point in the history
[FEAT] 참가자 별 경매내역 저장
  • Loading branch information
ssjy4974 authored Jan 20, 2024
2 parents acdf0bd + af90af9 commit 1627777
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ public Flux<ZSetOperations.TypedTuple<BidInfo>> 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<Double> getTopScore(String auctionId, int maximum) {
Expand Down

0 comments on commit 1627777

Please sign in to comment.