hypercore 10.0.0-alpha.31 → 10.0.0-alpha.32
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/lib/replicator.js +4 -0
- package/package.json +1 -1
package/lib/replicator.js
CHANGED
|
@@ -1382,6 +1382,10 @@ module.exports = class Replicator {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
|
|
1384
1384
|
_updatePeerNonPrimary (peer) {
|
|
1385
|
+
if (peer.inflight >= peer.maxInflight) {
|
|
1386
|
+
return false
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1385
1389
|
const ranges = new RandomIterator(this._ranges)
|
|
1386
1390
|
|
|
1387
1391
|
for (const r of ranges) {
|