Skip to content

Commit

Permalink
fix: get the correct revision (#9635)
Browse files Browse the repository at this point in the history
  • Loading branch information
syinwu committed Jun 25, 2023
1 parent 632c7c0 commit fc5ae82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apisix/core/config_etcd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ local function run_watch(premature)
log.error("etcd get: ", err)
ngx_sleep(3)
else
watch_ctx.rev = tonumber(res.body.header.revision)
rev = tonumber(res.body.header.revision)
break
end
end
Expand Down

0 comments on commit fc5ae82

Please sign in to comment.