Skip to content

Commit 4e5c798

Browse files
committed
Delegate to node_redis to choose default host/port.
1 parent f13d220 commit 4e5c798

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ function adapter(uri, opts){
4545
// handle uri string
4646
return redis(uri, redis_opts);
4747
} else {
48-
var port = Number(opts.port || 6379);
49-
var host = opts.host || '127.0.0.1';
50-
return redis(port, host, redis_opts);
48+
return redis(opts.port, opts.host, redis_opts);
5149
}
5250
}
5351

0 commit comments

Comments
 (0)