Skip to content

Commit

Permalink
router: fix typo in consts
Browse files Browse the repository at this point in the history
MASTER_SEARCH_TIEMOUT -> MASTER_SEARCH_TIMEOUT.
                ^^                       ^^

Closes #306
  • Loading branch information
Gerold103 committed Dec 21, 2021
1 parent 2eb17c4 commit c092f03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vshard/consts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ return {
MASTER_SEARCH_IDLE_INTERVAL = 5,
MASTER_SEARCH_WORK_INTERVAL = 0.5,
MASTER_SEARCH_BACKOFF_INTERVAL = 5,
MASTER_SEARCH_TIEMOUT = 5,
MASTER_SEARCH_TIMEOUT = 5,

TIMEOUT_INFINITY = 500 * 365 * 86400,
DEADLINE_INFINITY = math.huge,
Expand Down
4 changes: 2 additions & 2 deletions vshard/replicaset.lua
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ local function replicaset_master_call(replicaset, func, args, opts)
return nil, lerror.vshard(lerror.code.MISSING_MASTER,
replicaset.uuid)
end
local timeout = opts.timeout or consts.MASTER_SEARCH_TIEMOUT
local timeout = opts.timeout or consts.MASTER_SEARCH_TIMEOUT
master, timeout = replicaset_wait_master(replicaset, timeout)
if not master then
return nil, timeout
Expand Down Expand Up @@ -744,7 +744,7 @@ local function replicaset_locate_master(replicaset)
end
local func = 'vshard.storage._call'
local args = {'info'}
local const_timeout = consts.MASTER_SEARCH_TIEMOUT
local const_timeout = consts.MASTER_SEARCH_TIMEOUT
local ok, res, err, f
local master = replicaset.master
if master then
Expand Down

0 comments on commit c092f03

Please sign in to comment.