From 7cd2b589c36591b32748139a56252f213bf9fa34 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 3456b497b6c6a..bcb49dcc1a7c8 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 6cdb6f5bd1ed6..fba18d4dd2642 100644 --- a/kong/runloop/handler.lua +++ b/kong/runloop/handler.lua @@ -1037,7 +1037,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