Skip to content

Commit

Permalink
bugfix: sync upstream when version not match
Browse files Browse the repository at this point in the history
  • Loading branch information
yejingx committed Aug 10, 2016
1 parent 57eb2c9 commit 964ebe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resty/checkups/dyconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ local function shd_config_syncer(premature)

local config_version, err = shd_config:get(base.SHD_CONFIG_VERSION_KEY)

if config_version and config_version > base.upstream.shd_config_version then
if config_version and config_version ~= base.upstream.shd_config_version then
local skeys = shd_config:get(base.SKEYS_KEY)
if skeys then
skeys = cjson.decode(skeys)
Expand Down

0 comments on commit 964ebe6

Please sign in to comment.