Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/resty/rediscluster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ local function _do_cmd(self, cmd, key, ...)
slots[slot].cur = index
local res, err = redis_client[cmd](redis_client, key, ...)
redis_client:set_keepalive(config.keepalive_timeout or DEFUALT_KEEPALIVE_TIMEOUT,
config.keepalove_cons or DEFAULT_KEEPALIVE_CONS)
config.keepalive_cons or DEFAULT_KEEPALIVE_CONS)
if err and string.sub(err, 1, 5) == "MOVED" then
self:fetch_slots()
break
Expand Down Expand Up @@ -287,7 +287,7 @@ function _M.commit_pipeline(self)
end
local res, err = ins:commit_pipeline()
ins:set_keepalive(config.keepalive_timeout or DEFUALT_KEEPALIVE_TIMEOUT,
config.keepalove_cons or DEFAULT_KEEPALIVE_CONS)
config.keepalive_cons or DEFAULT_KEEPALIVE_CONS)
if err then
return nil, err.." return from "..tostring(ip)..":"..tostring(port)
end
Expand Down