You've already forked node-redis
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:
2
index.js
2
index.js
@@ -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) {
|
||||
|
Reference in New Issue
Block a user