Use config instead of constants, other review commetns

This commit is contained in:
Danielv123 committed 2025-04-13 18:00:52 +02:00
1 parent c6f10e2195
commit 25099c03ba
4 files changed
+35 -35

No files matched your search

-4
View File
@@ -97,12 +97,8 @@ export default class Controller {
clusterLogBuildInterval: ReturnType<typeof setInterval> | null = null;
// Cache for mod portal requests
static MOD_PORTAL_CACHE_DURATION = 30 * 60 * 1000; // 30 minutes
modPortalCache = new Map<string, { timestamp: number, data: any[] }>();
/** @type {?module:lib.ProcessConnector} */
process = null;
static async bootstrap(config: lib.ControllerConfig) {
let databaseDirectory = config.get("controller.database_directory");
await fs.ensureDir(databaseDirectory);