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 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "10.0.0-alpha.31",
3
+ "version": "10.0.0-alpha.32",
4
4
  "description": "Hypercore 10",
5
5
  "main": "index.js",
6
6
  "scripts": {