mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-05 20:21:19 +02:00
Working on inference resource management
This commit is contained in:
@@ -1177,12 +1177,12 @@ async function syncClientExitNodeConnections(
|
||||
const connectPayloads: {
|
||||
clientId: string;
|
||||
message: { type: string; data: any };
|
||||
options: { compress: boolean };
|
||||
options: { compress: boolean; incrementConfigVersion: boolean };
|
||||
}[] = [];
|
||||
const disconnectPayloads: {
|
||||
clientId: string;
|
||||
message: { type: string; data: any };
|
||||
options: { compress: boolean };
|
||||
options: { compress: boolean; incrementConfigVersion: boolean };
|
||||
}[] = [];
|
||||
|
||||
for (const client of clientsData) {
|
||||
@@ -1218,7 +1218,10 @@ async function syncClientExitNodeConnections(
|
||||
tunnelIP: client.exitNodeSubnet.split("/")[0]
|
||||
}
|
||||
},
|
||||
options: { compress: canCompress(olm.version, "olm") }
|
||||
options: {
|
||||
compress: canCompress(olm.version, "olm"),
|
||||
incrementConfigVersion: true
|
||||
}
|
||||
});
|
||||
} else {
|
||||
disconnectPayloads.push({
|
||||
@@ -1227,7 +1230,10 @@ async function syncClientExitNodeConnections(
|
||||
type: "olm/wg/exitnode/disconnect",
|
||||
data: {}
|
||||
},
|
||||
options: { compress: canCompress(olm.version, "olm") }
|
||||
options: {
|
||||
compress: canCompress(olm.version, "olm"),
|
||||
incrementConfigVersion: true
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1293,7 +1299,10 @@ async function syncClientExitNodeAliasUpdate(
|
||||
newAliases
|
||||
}
|
||||
},
|
||||
options: { compress: canCompress(olm.version, "olm") }
|
||||
options: {
|
||||
compress: canCompress(olm.version, "olm"),
|
||||
incrementConfigVersion: true // this is important information we would need to sync
|
||||
}
|
||||
}));
|
||||
|
||||
if (updatePayloads.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user