Rename Master to Controller

The role of the master server as the party controlling every part of the
cluster is not well reflected in its name and has caused confusion among
users on several occasions.  Rename master to controller to better
reflects its role.
This commit is contained in:
Hornwitser committed 2023-02-22 15:30:51 +01:00
1 parent 6ae4c8ef46
commit 70ad295a89
119 files changed
+1394 -1376

No files matched your search

+3 -3
View File
@@ -32,11 +32,11 @@ class InstancePlugin extends libPlugin.BaseInstancePlugin {
.catch(err => this.logger.error(`Error handling ipc-inventory_sync_download:\n${err.stack}`)));
}
onPrepareMasterDisconnect() {
onPrepareControllerDisconnect() {
this.disconnecting = true;
}
onMasterConnectionEvent(event) {
onControllerConnectionEvent(event) {
if (event === "connect") {
this.disconnecting = false;
(async () => {
@@ -60,7 +60,7 @@ class InstancePlugin extends libPlugin.BaseInstancePlugin {
let response = {
player_name: request.player_name,
status: "error",
message: "Master is temporarily unavailable",
message: "Controller is temporarily unavailable",
};
if (this.slave.connector.connected && !this.disconnecting) {