querysub 0.624.0 → 0.626.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.624.0",
3
+ "version": "0.626.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -79,7 +79,7 @@
79
79
  "node-forge": "https://github.com/sliftist/forge#e618181b469b07bdc70b968b0391beb8ef5fecd6",
80
80
  "pako": "^2.1.0",
81
81
  "peggy": "^5.0.6",
82
- "sliftutils": "^1.7.92",
82
+ "sliftutils": "^1.7.95",
83
83
  "socket-function": "^1.2.30",
84
84
  "terser": "^5.31.0",
85
85
  "typenode": "^6.6.1",
@@ -201,7 +201,5 @@ export async function initArchives2() {
201
201
  getArchives2PublicImmutable(""),
202
202
  getArchives2Public(""),
203
203
  ];
204
- for (let bucket of buckets) {
205
- await bucket.hasWriteAccess()
206
- }
204
+ await Promise.allSettled(buckets.map(bucket => bucket.hasWriteAccess()));
207
205
  }
@@ -7,6 +7,7 @@ import { formatDateTime } from "socket-function/src/formatting/format";
7
7
  import { green, magenta } from "socket-function/src/formatting/logColors";
8
8
  import { delay } from "socket-function/src/batching";
9
9
  import { MachineServiceControllerBase, ServiceConfig } from "./machineSchema";
10
+ import { initArchives2 } from "../-a-archives/archives2";
10
11
 
11
12
  // setServiceConfigs notifies the machines without awaiting the notifications, so we linger before exiting to let them go out. If they are lost anyway (ex, the machines are unreachable), the machines still pick up the new configs on their fallback resync poll.
12
13
  const NOTIFY_GRACE_PERIOD = 10 * 1000;
@@ -73,6 +74,10 @@ async function main() {
73
74
  await delay(NOTIFY_GRACE_PERIOD);
74
75
 
75
76
  console.log(green(`Emergency update complete: ${outdated.length} services updating to ${gitInfo.latestRef}`));
77
+
78
+ await initArchives2();
79
+
80
+ console.log(green(`Archives initialized`));
76
81
  }
77
82
 
78
83
  main().catch(logErrors).finally(() => process.exit());