File tree Expand file tree Collapse file tree
backend/src/main/java/com/WEB4_5_GPT_BE/unihub/domain/enrollment/service Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .WEB4_5_GPT_BE .unihub .domain .enrollment .service ;
22
3- import java . time . Duration ;
4- import java . util . List ;
5-
3+ import com . WEB4_5_GPT_BE . unihub . domain . enrollment . dto . QueueStatusDto ;
4+ import lombok . RequiredArgsConstructor ;
5+ import lombok . extern . slf4j . Slf4j ;
66import org .springframework .data .redis .core .Cursor ;
77import org .springframework .data .redis .core .ScanOptions ;
88import org .springframework .data .redis .core .StringRedisTemplate ;
99import org .springframework .stereotype .Service ;
10- import com . WEB4_5_GPT_BE . unihub . domain . enrollment . dto . QueueStatusDto ;
11- import lombok . RequiredArgsConstructor ;
12- import lombok . extern . slf4j . Slf4j ;
10+
11+ import java . time . Duration ;
12+ import java . util . List ;
1313
1414@ Slf4j
1515@ Service
@@ -18,7 +18,7 @@ public class EnrollmentQueueService {
1818
1919 private static final String WAITING_QUEUE_KEY = "enrollment:waiting-queue" ;
2020 private static final String SESSION_PREFIX = "enrollment:session:" ;
21- private static final int MAX_CONCURRENT_USERS = 3 ;
21+ private static final int MAX_CONCURRENT_USERS = 1 ;
2222 private static final Duration SESSION_TIMEOUT = Duration .ofMinutes (10 );
2323 private final StringRedisTemplate redisTemplate ;
2424
You can’t perform that action at this time.
0 commit comments