hypercore 11.28.0 → 11.28.1

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
@@ -2030,7 +2030,12 @@ module.exports = class Replicator {
2030
2030
  }
2031
2031
 
2032
2032
  setInflightRange(min, max) {
2033
+ const def = this.inflightRange
2033
2034
  this.inflightRange = [min, max]
2035
+ for (const peer of this.peers) {
2036
+ if (peer.inflightRange !== def) continue
2037
+ peer.inflightRange = this.inflightRange
2038
+ }
2034
2039
  }
2035
2040
 
2036
2041
  updateActivity(inc, session) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "11.28.0",
3
+ "version": "11.28.1",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {