mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-19 10:42:57 +02:00
Fix circular import issue
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { build } from "@server/build";
|
||||
import { startRemoteExitNodeOfflineChecker } from "./routers/remoteExitNode";
|
||||
import { startExitNodeReconnectScheduler } from "./routers/remoteExitNode/exitNodeReconnectScheduler";
|
||||
import { startSchedulers as ossStartSchedulers } from "@server/startSchedulers";
|
||||
|
||||
export function startSchedulers() {
|
||||
if (build != "saas") {
|
||||
startRemoteExitNodeOfflineChecker(); // this is to handle the offline check for remote exit nodes
|
||||
startExitNodeReconnectScheduler(); // check pending exit node reconnects and notify newts
|
||||
}
|
||||
ossStartSchedulers();
|
||||
}
|
||||
Reference in New Issue
Block a user