mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
Use config instead of constants, other review commetns
This commit is contained in:
1 parent
c6f10e2195
commit
25099c03ba
4 files changed
+35
-35
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user