Skip to content

Commit

Permalink
refactor: format PORT initialization and improve import structure in …
Browse files Browse the repository at this point in the history
…Config and Index
  • Loading branch information
simlarsen committed Jan 1, 2025
1 parent f1afab0 commit 1abf1df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Probe/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
export const PORT: Port = new Port(
process.env["PORT"] ? parseInt(process.env["PORT"]) : 3874,
);
6 changes: 5 additions & 1 deletion Probe/Index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 1abf1df

Please sign in to comment.