Skip to content

Commit

Permalink
refactor: 선착순 이벤트 퀴즈 제출시 커넥션을 얻으려고 하는 횟수 수정
Browse files Browse the repository at this point in the history
[- 250ms 5번 1.25초 -> 250ms 120번 -> 30초(디폴트값)]
  • Loading branch information
starwook committed Aug 25, 2024
1 parent 7516a0c commit 16471e2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class OrderResultCommandService {
private final CurrentOrderEventManageService currentOrderEventManageService;
private final ApplyTokenProvider applyTokenProvider;
private final OrderResultSaveService orderResultSaveService;
private final int toGetConnectionCount = 5;
private final int toGetConnectionCount = 120;

public ResponseApplyTicketDto createTokenAndMakeTicket(Long orderEventId) {
String applyToken = applyTokenProvider.createTokenByOrderEventId(JwtPayload.from(String.valueOf(orderEventId)));
Expand All @@ -39,7 +39,6 @@ public ResponseApplyTicketDto createTokenAndMakeTicket(Long orderEventId) {
}
catch (CannotCreateTransactionException e){ //timeOut됐을시에
// e.printStackTrace();
log.info(i+"/1차 시도 실패");//한 번 씩 더 검사한다
if(currentOrderEventManageService.isOrderApplyFull()){
return ResponseApplyTicketDto.fullApply();
}
Expand Down

0 comments on commit 16471e2

Please sign in to comment.