Skip to content

Commit

Permalink
SYNC_MAX_RETRY
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 30, 2024
1 parent e15e545 commit 0b49f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/clustering/services/sync/rpc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local CLUSTERING_DATA_PLANES_LATEST_VERSION_KEY = constants.CLUSTERING_DATA_PLAN
local DECLARATIVE_DEFAULT_WORKSPACE_KEY = constants.DECLARATIVE_DEFAULT_WORKSPACE_KEY
local CLUSTERING_SYNC_STATUS = constants.CLUSTERING_SYNC_STATUS
local SYNC_MUTEX_OPTS = { name = "get_delta", timeout = 0, }
local MAX_RETRY = 5
local SYNC_MAX_RETRY = 5


local assert = assert
Expand Down Expand Up @@ -428,7 +428,7 @@ end


function _M:sync_once(delay)
return ngx.timer.at(delay or 0, sync_handler, MAX_RETRY)
return ngx.timer.at(delay or 0, sync_handler, SYNC_MAX_RETRY)
end


Expand Down

0 comments on commit 0b49f5d

Please sign in to comment.