Skip to content

Commit ded1e19

Browse files
committed
Renamed set_connect_options to set_connection_options
1 parent 4ec8ba7 commit ded1e19

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/resty/redis/connector.lua

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ local mt = { __index = _M }
2828
local DEFAULTS = {
2929
host = "127.0.0.1",
3030
port = 6379,
31-
path = nil,
31+
path = nil, -- /tmp/redis.sock
3232
password = nil,
3333
db = 0,
3434
master_name = "mymaster",
3535
role = "master", -- master | slave | any (tries master first, failover to a slave)
36-
sentinels = nil, {
37-
{ host = "127.0.0.1", port = 6379 }
38-
},
36+
sentinels = nil,
3937
cluster_startup_nodes = {},
4038
}
4139

@@ -59,7 +57,7 @@ function _M.set_read_timeout(self, timeout)
5957
end
6058

6159

62-
function _M.set_connect_options(self, options)
60+
function _M.set_connection_options(self, options)
6361
self.connection_options = options
6462
end
6563

0 commit comments

Comments
 (0)