feat: 토너먼트 페이지군 자동 갱신을 분리한다
토너먼트 전용 SSE scope와 slice invalidation을 추가하고 같은 계정의 visible 탭이 조회를 공유하게 한다. 서버 증명 snapshot 조회는 접속 점수를 더하지 않되 기존 hard limit은 유지한다.
This commit is contained in:
@@ -69,6 +69,12 @@ export const generalAccessEndpointWeights = {
|
||||
|
||||
export type GeneralAccessEndpoint = keyof typeof generalAccessEndpointWeights;
|
||||
|
||||
/** Server-proven realtime refreshes retain the limit gate but do not add refresh score. */
|
||||
export const shouldRecordGeneralAccessEndpoint = (
|
||||
endpoint: GeneralAccessEndpoint,
|
||||
realtimeAccessGranted: boolean | undefined
|
||||
): boolean => !(realtimeAccessGranted === true && endpoint === 'tournament.getSnapshot');
|
||||
|
||||
export const generalAccessLimitPages = new Set<AccessPage>(['nation-list', 'npc-control']);
|
||||
|
||||
export const generalAccessLimitEndpoints = new Set<GeneralAccessEndpoint>([
|
||||
|
||||
Reference in New Issue
Block a user