1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

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
This commit is contained in:
Ruben Bridgewater
2016-04-14 02:09:25 +02:00
parent a857829a36
commit e58e310225

View File

@@ -502,8 +502,6 @@ RedisClient.prototype.send_offline_queue = function () {
this.internal_send_command(command_obj.command, command_obj.args, command_obj.callback, command_obj.call_on_write);
}
this.drain();
// Even though items were shifted off, Queue backing store still uses memory until next add, so just get a new Queue
this.offline_queue = new Queue();
};
var retry_connection = function (self, error) {