hypercore 10.37.5 → 10.37.6
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 +7 -2
- package/package.json +1 -1
package/lib/replicator.js
CHANGED
|
@@ -300,9 +300,14 @@ class RoundtripQueue {
|
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
clear () {
|
|
303
|
-
const
|
|
303
|
+
const ids = new Array(this.queue.length)
|
|
304
|
+
for (let i = 0; i < ids.length; i++) {
|
|
305
|
+
ids[i] = this.queue[i][1]
|
|
306
|
+
}
|
|
307
|
+
|
|
304
308
|
this.queue = []
|
|
305
|
-
|
|
309
|
+
|
|
310
|
+
return ids
|
|
306
311
|
}
|
|
307
312
|
|
|
308
313
|
add (id) {
|