From 4c6cc2276081c4820211aa0641b7869663f7851c Mon Sep 17 00:00:00 2001 From: bxlxx Date: Sat, 10 Jun 2023 20:51:45 +0800 Subject: [PATCH] fix: get the correct revision --- apisix/core/config_etcd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apisix/core/config_etcd.lua b/apisix/core/config_etcd.lua index ecb76270452d..4cca5a44cde9 100644 --- a/apisix/core/config_etcd.lua +++ b/apisix/core/config_etcd.lua @@ -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