querysub 0.79.0 → 0.80.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.79.0",
3
+ "version": "0.80.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",
@@ -204,7 +204,7 @@ async function checkEdgeDomainsAlive() {
204
204
  for (let i = 0; i < 3; i++) {
205
205
  let isListening = await testTCPIsListening(ip, publicPort);
206
206
  if (isListening) return true;
207
- console.warn(`IP ${ip}:${publicPort} is not listening, waiting 10 seconds before retrying`);
207
+ console.warn(`IP ${ip}:${publicPort} is not listening, waiting 10 seconds before retrying. If it fails 3 times in a row, the A record will be removed.`);
208
208
  await delay(timeInSecond * 10);
209
209
  }
210
210
  return false;
@@ -457,7 +457,9 @@ if (isServer()) {
457
457
  // when using management tools to scan the DB (otherwise the entire DB has to go through
458
458
  // our router, which can easily cap it at 15MB/s, because rogers is terrible).
459
459
  // - Only if isNoNetwork, otherwise it causes unnecessary lag.
460
+ let time = Date.now();
460
461
  let isNoNetwork = await NodeDiscoveryController.nodes[browserNodeId].isNoNetwork();
462
+ console.log(magenta(`isNoNetwork took ${Date.now() - time}ms`));
461
463
  if (isNoNetwork && !location.search.includes("nolocalhost")) {
462
464
  let url = new URL("https://" + browserNodeId);
463
465
  url.hostname = "127-0-0-1." + url.hostname;