This is an automated email from the ASF dual-hosted git repository.

monkeydluffy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new fc5ae822d fix: get the correct revision (#9635)
fc5ae822d is described below

commit fc5ae822d26451cd9241425f14fd4ca22de8af02
Author: Syin Wu <[email protected]>
AuthorDate: Sun Jun 25 15:31:19 2023 +0800

    fix: get the correct revision (#9635)
---
 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 ecb762704..4cca5a44c 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

Reply via email to