From 1abf1df1eeabdabacd743e0ccab11a05bdfcb440 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Wed, 1 Jan 2025 18:24:30 +0000 Subject: [PATCH] refactor: format PORT initialization and improve import structure in Config and Index --- Probe/Config.ts | 4 +++- Probe/Index.ts | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Probe/Config.ts b/Probe/Config.ts index 52915624dd1..df281f884c3 100644 --- a/Probe/Config.ts +++ b/Probe/Config.ts @@ -81,4 +81,6 @@ export const PROBE_MONITOR_RETRY_LIMIT: number = process.env[ ? parseInt(process.env["PROBE_MONITOR_RETRY_LIMIT"].toString()) : 3; - export const PORT: Port = new Port(process.env["PORT"] ? parseInt(process.env["PORT"]) : 3874); \ No newline at end of file +export const PORT: Port = new Port( + process.env["PORT"] ? parseInt(process.env["PORT"]) : 3874, +); diff --git a/Probe/Index.ts b/Probe/Index.ts index 6eeb33b0e84..dcb08c8bc30 100644 --- a/Probe/Index.ts +++ b/Probe/Index.ts @@ -1,4 +1,8 @@ -import { PORT, PROBE_MONITOR_RETRY_LIMIT, PROBE_MONITORING_WORKERS } from "./Config"; +import { + PORT, + PROBE_MONITOR_RETRY_LIMIT, + PROBE_MONITORING_WORKERS, +} from "./Config"; import "./Jobs/Alive"; import FetchListAndProbe from "./Jobs/Monitor/FetchList"; import FetchMonitorTest from "./Jobs/Monitor/FetchMonitorTest";