mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 15:33:12 +09:00
Implemented forwarding of requests to the master
Implement the forwardTo function for requests to the master server.
This commit is contained in:
1 parent
5681ef9733
commit
6a8346186f
3 files changed
+15
-6
No files matched your search
@@ -358,6 +358,10 @@ class InstanceConnection extends link.Link {
|
||||
}
|
||||
}
|
||||
|
||||
async forwardRequestToMaster(message, request) {
|
||||
return await request.send(this.slave, message.data);
|
||||
}
|
||||
|
||||
async forwardEventToInstance(message, event) {
|
||||
let instanceId = message.data.instance_id;
|
||||
let instanceConnection = this.slave.instanceConnections.get(instanceId);
|
||||
|
||||
Reference in new issue
Block a user