querysub 0.659.0 → 0.660.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -345,8 +345,6 @@ class PathValueCommitter {
|
|
|
345
345
|
let valueWatchNode = remoteWatcher.getValueWatchRemoteNodeId(path);
|
|
346
346
|
if (!valueWatchNode || !areNodeIdsEqual(valueWatchNode, batch.sourceNodeId)) {
|
|
347
347
|
let candidates = PathRouter.getAllAuthorities(path);
|
|
348
|
-
require("debugbreak")(2);
|
|
349
|
-
debugger;
|
|
350
348
|
remoteWatcher.getExistingWatchRemoteNodeId(path);
|
|
351
349
|
console.warn(`Ignoring value from wrong authority. Should have been ${debugNodeId(watchingAuthorityId)}, but was received from ${debugNodeId(batch.sourceNodeId)}.`, {
|
|
352
350
|
path,
|
package/src/storageSetup.ts
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
process.env.PRODUCTION = "true";
|
|
2
|
-
import { magenta } from "socket-function/src/formatting/logColors";
|
|
3
2
|
import "./inject";
|
|
4
3
|
process.argv.push("--nobreak");
|
|
5
4
|
|
|
6
|
-
// The storage server entry point (see bin/storageserve.js): sets up the CLI args the sliftutils storage server expects
|
|
5
|
+
// The storage server entry point (see bin/storageserve.js): sets up the CLI args the sliftutils storage server expects and runs its CLI. Trust is no longer synchronized here - the storage server reads it from the signed authorized_keys repo (security/machines) itself.
|
|
7
6
|
|
|
8
7
|
async function main() {
|
|
9
|
-
const { getTrustedMachineIds } = await import("./-d-trust/NetworkTrust2");
|
|
10
|
-
let trustedMachineIds = await getTrustedMachineIds();
|
|
11
|
-
let { setTrustedMachines } = await import("sliftutils/storage/remoteStorage/serverConfig");
|
|
12
|
-
await setTrustedMachines({ account: "root", machineIds: trustedMachineIds });
|
|
13
|
-
console.log(magenta(`Synchronized ${trustedMachineIds.length} trusted machines`));
|
|
14
|
-
|
|
15
8
|
await import("sliftutils/storage/remoteStorage/storageServerCli");
|
|
16
9
|
}
|
|
17
10
|
|