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