From 014610ea62e5b33d8c3b66cedc0f35bf542ac988 Mon Sep 17 00:00:00 2001 From: Datong Sun Date: Tue, 4 Jun 2024 08:30:43 -0700 Subject: [PATCH] fix bugs in RPC handler --- kong/clustering/services/sync/rpc.lua | 2 ++ kong/runloop/handler.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kong/clustering/services/sync/rpc.lua b/kong/clustering/services/sync/rpc.lua index 3456b497b6c6..bcb49dcc1a7c 100644 --- a/kong/clustering/services/sync/rpc.lua +++ b/kong/clustering/services/sync/rpc.lua @@ -102,6 +102,8 @@ function _M:sync_once(delay) return true end end + + return true end) if not res and err ~= "timeout" then ngx_log(ngx_ERR, "unable to create worker mutex and sync: ", err) diff --git a/kong/runloop/handler.lua b/kong/runloop/handler.lua index c62768b8447b..956788d77732 100644 --- a/kong/runloop/handler.lua +++ b/kong/runloop/handler.lua @@ -1033,7 +1033,7 @@ return { end end - local _, err = kong.timer:named_every("rebuild", + local _, err = kong.timer:named_every("wasm-rebuild", worker_state_update_frequency, rebuild_wasm_filter_chains_timer) if err then