hypercore 10.37.2 → 10.37.3
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 +3 -1
- package/package.json +1 -1
package/lib/replicator.js
CHANGED
|
@@ -862,7 +862,9 @@ class Peer {
|
|
|
862
862
|
this.inflight--
|
|
863
863
|
this.replicator._removeInflight(req.id, true)
|
|
864
864
|
if (this.roundtripQueue === null) return
|
|
865
|
-
|
|
865
|
+
const flushed = this.roundtripQueue.flush(req.rt)
|
|
866
|
+
if (flushed === null) return
|
|
867
|
+
for (const id of flushed) this.replicator._inflight.reusable(id)
|
|
866
868
|
}
|
|
867
869
|
|
|
868
870
|
onwant ({ start, length }) {
|