You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
index.js: fix enable_offline_queue default. tests pass
This commit is contained in:
6
index.js
6
index.js
@@ -50,7 +50,11 @@ function RedisClient(stream, options) {
|
||||
if (options.connect_timeout && !isNaN(options.connect_timeout) && options.connect_timeout > 0) {
|
||||
this.connect_timeout = +options.connect_timeout;
|
||||
}
|
||||
this.enable_offline_queue = this.options.enable_offline_queue || true;
|
||||
|
||||
this.enable_offline_queue = true;
|
||||
if (typeof this.options.enable_offline_queue === "boolean") {
|
||||
this.enable_offline_queue = this.options.enable_offline_queue;
|
||||
}
|
||||
|
||||
this.initialize_retry_vars();
|
||||
this.pub_sub_mode = false;
|
||||
|
Reference in New Issue
Block a user