@dxos/network-manager 0.3.9-main.c2ac8a5 → 0.3.9-main.ce2ae56
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/dist/lib/browser/{chunk-Q5B7EFTV.mjs → chunk-KGZ5C6JO.mjs} +8 -8
- package/dist/lib/browser/{chunk-Q5B7EFTV.mjs.map → chunk-KGZ5C6JO.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +1 -1
- package/dist/lib/node/{chunk-YLQJ2ALQ.cjs → chunk-WUBZ4UOJ.cjs} +11 -11
- package/dist/lib/node/{chunk-YLQJ2ALQ.cjs.map → chunk-WUBZ4UOJ.cjs.map} +2 -2
- package/dist/lib/node/index.cjs +27 -27
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +18 -18
- package/package.json +17 -17
- package/src/topology/mmst-topology.ts +7 -7
|
@@ -2383,7 +2383,7 @@ var MMSTTopology = class {
|
|
|
2383
2383
|
});
|
|
2384
2384
|
const { connected, candidates } = this._controller.getState();
|
|
2385
2385
|
if (this._sampleCollected || connected.length > this._maxPeers || candidates.length > 0) {
|
|
2386
|
-
log8
|
|
2386
|
+
log8("Running the algorithm.", void 0, {
|
|
2387
2387
|
F: __dxlog_file9,
|
|
2388
2388
|
L: 60,
|
|
2389
2389
|
S: this,
|
|
@@ -2427,7 +2427,7 @@ var MMSTTopology = class {
|
|
|
2427
2427
|
});
|
|
2428
2428
|
const { connected, candidates, ownPeerId } = this._controller.getState();
|
|
2429
2429
|
if (connected.length > this._maxPeers) {
|
|
2430
|
-
log8
|
|
2430
|
+
log8(`disconnect ${connected.length - this._maxPeers} peers.`, void 0, {
|
|
2431
2431
|
F: __dxlog_file9,
|
|
2432
2432
|
L: 85,
|
|
2433
2433
|
S: this,
|
|
@@ -2453,7 +2453,7 @@ var MMSTTopology = class {
|
|
|
2453
2453
|
}
|
|
2454
2454
|
if (Date.now() - this._lastAction.getTime() > MIN_UPDATE_INTERVAL) {
|
|
2455
2455
|
for (const peer of sorted.slice(0, MAX_CHANGES_PER_UPDATE)) {
|
|
2456
|
-
log8
|
|
2456
|
+
log8(`Disconnect ${peer}.`, void 0, {
|
|
2457
2457
|
F: __dxlog_file9,
|
|
2458
2458
|
L: 97,
|
|
2459
2459
|
S: this,
|
|
@@ -2463,7 +2463,7 @@ var MMSTTopology = class {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
this._lastAction = /* @__PURE__ */ new Date();
|
|
2465
2465
|
} else {
|
|
2466
|
-
log8
|
|
2466
|
+
log8("rate limited discconnect", void 0, {
|
|
2467
2467
|
F: __dxlog_file9,
|
|
2468
2468
|
L: 102,
|
|
2469
2469
|
S: this,
|
|
@@ -2471,7 +2471,7 @@ var MMSTTopology = class {
|
|
|
2471
2471
|
});
|
|
2472
2472
|
}
|
|
2473
2473
|
} else if (connected.length < this._originateConnections) {
|
|
2474
|
-
log8
|
|
2474
|
+
log8(`connect ${this._originateConnections - connected.length} peers.`, void 0, {
|
|
2475
2475
|
F: __dxlog_file9,
|
|
2476
2476
|
L: 106,
|
|
2477
2477
|
S: this,
|
|
@@ -2489,7 +2489,7 @@ var MMSTTopology = class {
|
|
|
2489
2489
|
}
|
|
2490
2490
|
if (Date.now() - this._lastAction.getTime() > MIN_UPDATE_INTERVAL) {
|
|
2491
2491
|
for (const peer of sorted.slice(0, MAX_CHANGES_PER_UPDATE)) {
|
|
2492
|
-
log8
|
|
2492
|
+
log8(`Connect ${peer}.`, void 0, {
|
|
2493
2493
|
F: __dxlog_file9,
|
|
2494
2494
|
L: 115,
|
|
2495
2495
|
S: this,
|
|
@@ -2499,7 +2499,7 @@ var MMSTTopology = class {
|
|
|
2499
2499
|
}
|
|
2500
2500
|
this._lastAction = /* @__PURE__ */ new Date();
|
|
2501
2501
|
} else {
|
|
2502
|
-
log8
|
|
2502
|
+
log8("rate limited connect", void 0, {
|
|
2503
2503
|
F: __dxlog_file9,
|
|
2504
2504
|
L: 120,
|
|
2505
2505
|
S: this,
|
|
@@ -3936,4 +3936,4 @@ export {
|
|
|
3936
3936
|
TcpTransport,
|
|
3937
3937
|
createTeleportProtocolFactory
|
|
3938
3938
|
};
|
|
3939
|
-
//# sourceMappingURL=chunk-
|
|
3939
|
+
//# sourceMappingURL=chunk-KGZ5C6JO.mjs.map
|