querysub 0.89.0 → 0.90.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
|
@@ -208,13 +208,14 @@ class NodePathAuthorities {
|
|
|
208
208
|
private async watchAuthorityPaths() {
|
|
209
209
|
await onNodeDiscoveryReady();
|
|
210
210
|
|
|
211
|
-
onReadReady = (nodeId, time) => {
|
|
211
|
+
onReadReady = async (nodeId, time) => {
|
|
212
212
|
let obj = this.authorities.get(nodeId);
|
|
213
213
|
if (!obj) {
|
|
214
214
|
// Might as well use this to add the node, if we don't know about it yet.
|
|
215
215
|
ingestNewNodeIds([nodeId], []);
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
|
+
obj.authorityPaths = await PathController.nodes[nodeId].getAuthorityPaths();
|
|
218
219
|
obj.isReadReady = time;
|
|
219
220
|
obj.onReady.resolve();
|
|
220
221
|
};
|
|
@@ -976,7 +977,7 @@ function authoritiesMightOverlap(other: AuthorityPath, current: AuthorityPath):
|
|
|
976
977
|
|
|
977
978
|
|
|
978
979
|
|
|
979
|
-
let onReadReady = (nodeId: string, time: number) => { };
|
|
980
|
+
let onReadReady = async (nodeId: string, time: number) => { };
|
|
980
981
|
class PathControllerBase {
|
|
981
982
|
public async getAuthorityPaths() {
|
|
982
983
|
return pathValueAuthority2.getSelfAuthorities();
|
|
@@ -993,7 +994,7 @@ class PathControllerBase {
|
|
|
993
994
|
public async broadcastReadReady(time: number) {
|
|
994
995
|
let nodeIdCaller = IdentityController_getCurrentReconnectNodeIdAssert();
|
|
995
996
|
console.log(magenta(`Received ready broadcast`), { nodeIdCaller });
|
|
996
|
-
onReadReady(nodeIdCaller, time);
|
|
997
|
+
void onReadReady(nodeIdCaller, time);
|
|
997
998
|
}
|
|
998
999
|
}
|
|
999
1000
|
const PathController = SocketFunction.register(
|