Skip to content

Commit c092f03

Browse files
committed
router: fix typo in consts
MASTER_SEARCH_TIEMOUT -> MASTER_SEARCH_TIMEOUT. ^^ ^^ Closes #306
1 parent 2eb17c4 commit c092f03

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vshard/consts.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ return {
5656
MASTER_SEARCH_IDLE_INTERVAL = 5,
5757
MASTER_SEARCH_WORK_INTERVAL = 0.5,
5858
MASTER_SEARCH_BACKOFF_INTERVAL = 5,
59-
MASTER_SEARCH_TIEMOUT = 5,
59+
MASTER_SEARCH_TIMEOUT = 5,
6060

6161
TIMEOUT_INFINITY = 500 * 365 * 86400,
6262
DEADLINE_INFINITY = math.huge,

vshard/replicaset.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ local function replicaset_master_call(replicaset, func, args, opts)
417417
return nil, lerror.vshard(lerror.code.MISSING_MASTER,
418418
replicaset.uuid)
419419
end
420-
local timeout = opts.timeout or consts.MASTER_SEARCH_TIEMOUT
420+
local timeout = opts.timeout or consts.MASTER_SEARCH_TIMEOUT
421421
master, timeout = replicaset_wait_master(replicaset, timeout)
422422
if not master then
423423
return nil, timeout
@@ -744,7 +744,7 @@ local function replicaset_locate_master(replicaset)
744744
end
745745
local func = 'vshard.storage._call'
746746
local args = {'info'}
747-
local const_timeout = consts.MASTER_SEARCH_TIEMOUT
747+
local const_timeout = consts.MASTER_SEARCH_TIMEOUT
748748
local ok, res, err, f
749749
local master = replicaset.master
750750
if master then

0 commit comments

Comments
 (0)