@streamr/dht 103.7.0-rc.2 → 103.8.0-rc.3

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.
@@ -251,7 +251,7 @@ class SendFailed extends Err {
251
251
  constructor(message, originalError) { super(ErrorCode.SEND_FAILED, message, originalError); }
252
252
  }
253
253
 
254
- let enabled = false;
254
+ let enabled = true;
255
255
  function setGapDiagnosticsEnabled(val) {
256
256
  enabled = val;
257
257
  globalThis.__dhtGapDiagEnabled = val;
@@ -259,7 +259,7 @@ function setGapDiagnosticsEnabled(val) {
259
259
  const SUMMARY_INTERVAL_MS = 2000;
260
260
  const accumulators = new Map();
261
261
  function logGapDiagnosticSampled(layer, opts = {}) {
262
- if (!enabled)
262
+ if (!enabled && !globalThis.__dhtGapDiagEnabled)
263
263
  return;
264
264
  const now = performance.now();
265
265
  const threshold = opts.outlierThresholdMs ?? 30;
@@ -2874,7 +2874,7 @@ const parseVersion = (version) => {
2874
2874
  }
2875
2875
  };
2876
2876
 
2877
- var version = "103.7.0-rc.2";
2877
+ var version = "103.8.0-rc.3";
2878
2878
 
2879
2879
  const logger$z = new utils.Logger('Handshaker');
2880
2880
  // Optimally the Outgoing and Incoming Handshakers could be their own separate classes