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 +5 -0
- package/package.json +1 -1
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) {
|