Skip to content

Commit e58e310

Browse files
author
Ruben Bridgewater
committed
Remove unnecessary unallocation. This is done by the queue itself
The total size is kept in the queue but this does not have to be reset each time
1 parent a857829 commit e58e310

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,6 @@ RedisClient.prototype.send_offline_queue = function () {
502502
this.internal_send_command(command_obj.command, command_obj.args, command_obj.callback, command_obj.call_on_write);
503503
}
504504
this.drain();
505-
// Even though items were shifted off, Queue backing store still uses memory until next add, so just get a new Queue
506-
this.offline_queue = new Queue();
507505
};
508506

509507
var retry_connection = function (self, error) {

0 commit comments

Comments
 (0)