Refactor master code

Move implementation of master systems into dedicated classes for better
organization.
This commit is contained in:
Hornwitser committed 2021-05-12 20:42:40 +02:00
1 parent 8b32267858
commit 67219ede6b
19 files changed
+2135 -1932

No files matched your search

+2 -2
View File
@@ -137,8 +137,8 @@ class MasterPlugin extends libPlugin.BaseMasterPlugin {
}
} else {
let instanceConfig = this.master.db.instances.get(instanceId);
let instanceName = instanceConfig ? instanceConfig.get("instance.name") : "unkonwn";
let instance = this.master.instances.get(instanceId);
let instanceName = instance ? instance.config.get("instance.name") : "unkonwn";
// use fancy neural net to calculate a "fair" dole division rate.
if (method === "neural_dole") {