We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28c7dc3 commit 6fcdaccCopy full SHA for 6fcdacc
lib/internal/fixed_queue.js
@@ -123,7 +123,6 @@ module.exports = class FixedQueue {
123
let nextBuf = this._spare;
124
if (nextBuf !== null) {
125
this._spare = null;
126
- nextBuf.reset();
127
} else {
128
nextBuf = new FixedCircularBuffer();
129
}
@@ -140,7 +139,8 @@ module.exports = class FixedQueue {
140
139
this.tail = tail.next;
141
// Place the emptied buffer into the spare slot for potential reuse.
142
tail.reset();
143
- this._spare = tail; // Overwrite any existing spare
+ // Overwrite any existing spare
+ this._spare = tail;
144
145
return next;
146
0 commit comments