Skip to content

Commit

Permalink
format hex
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Jan 10, 2025
1 parent 240beb4 commit 4f0db45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kong/clustering/services/sync/strategies/postgres.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local ngx_null = ngx.null

-- version string should be greater than any hex string(ngx.md5)
-- e.g.: "v02_0000" > "FFFFFFFF"
local VERSION_FMT = "v02_%028d"
local VERSION_FMT = "v02_%028x"


function _M.new(db)
Expand Down
2 changes: 1 addition & 1 deletion spec/02-integration/18-hybrid_rpc/05-sync-rpc_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local DP_PREFIX = "servroot_dp"

-- now version must be a string
local function fmt(v)
return string.format("v02_%028d", v)
return string.format("v02_%028x", v)
end


Expand Down

0 comments on commit 4f0db45

Please sign in to comment.