cleanup: small optimizations

This commit is contained in:
Cristina Poncela Cubeiro
2026-06-22 14:56:41 +02:00
parent d79e3061ad
commit 555ab2e548
5 changed files with 58 additions and 27 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { existsSync, mkdirSync, unlinkSync } from "node:fs";
import { dirname } from "node:path";
import { getSocketPath } from "./config.ts";
import { attachIpcInstance, handleIpcRequest } from "./handler.ts";
import { handleIpcRequest, openRpcStream } from "./handler.ts";
import { startIpcServer } from "./ipc/server.ts";
import { getRadiusOrchestratorBaseUrl, isRadiusEnabled, radiusPresence } from "./radius.ts";
import { supervisor } from "./supervisor.ts";
@@ -21,7 +21,7 @@ export async function serve(): Promise<void> {
}
const server = await startIpcServer(
Object.assign(handleIpcRequest, {
attach: attachIpcInstance,
openRpcStream,
}),
);
console.log(`orchestrator listening on ${socketPath}`);