Skip to content

Commit 5795c13

Browse files
committed
chore(webapp): remove unused projector exports
1 parent 2be0ef0 commit 5795c13

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

apps/webapp/app/services/logsSearchProjector.server.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ export type { LogsSearchProjectionMode } from "~/services/logsSearchProjectorTel
99

1010
export const LOGS_SEARCH_PROJECTOR_ID = "task_events_search_v2";
1111
export const LOGS_SEARCH_PROJECTOR_CHECKPOINT_MODE = "FINALIZED";
12-
export const LOGS_SEARCH_PREVIEW_WINDOW_MS = 5_000;
13-
export const LOGS_SEARCH_PREVIEW_SAFETY_DELAY_MS = 2_000;
14-
export const LOGS_SEARCH_FINALIZED_WINDOW_MS = 60_000;
15-
export const LOGS_SEARCH_FINALIZED_SAFETY_DELAY_MS = 120_000;
12+
const LOGS_SEARCH_PREVIEW_WINDOW_MS = 5_000;
13+
const LOGS_SEARCH_PREVIEW_SAFETY_DELAY_MS = 2_000;
14+
const LOGS_SEARCH_FINALIZED_WINDOW_MS = 60_000;
15+
const LOGS_SEARCH_FINALIZED_SAFETY_DELAY_MS = 120_000;
1616

1717
export type LogsSearchProjectorControl = {
1818
id: string;
@@ -368,11 +368,7 @@ export class LogsSearchProjector {
368368
}
369369
}
370370

371-
export function calculateClosedWindowBoundary(
372-
now: Date,
373-
safetyDelayMs: number,
374-
windowMs: number
375-
): Date {
371+
function calculateClosedWindowBoundary(now: Date, safetyDelayMs: number, windowMs: number): Date {
376372
return new Date(Math.floor((now.getTime() - safetyDelayMs) / windowMs) * windowMs);
377373
}
378374

apps/webapp/app/v3/logsSearchProjectorWorker.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function initializeWorker() {
4545
return worker;
4646
}
4747

48-
export const logsSearchProjectorWorker = singleton("logsSearchProjectorWorker", initializeWorker);
48+
const logsSearchProjectorWorker = singleton("logsSearchProjectorWorker", initializeWorker);
4949

5050
declare global {
5151
// eslint-disable-next-line no-var

0 commit comments

Comments
 (0)