From 78f7acbbb0af020dc03f5447f43cda3d947efa63 Mon Sep 17 00:00:00 2001 From: Xiaochen Wang Date: Tue, 3 Dec 2024 17:28:32 +0800 Subject: [PATCH] fix(sync) don't return value from timer callback --- kong/clustering/services/sync/rpc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kong/clustering/services/sync/rpc.lua b/kong/clustering/services/sync/rpc.lua index fdd3d0cb6f02..f933b9053a6f 100644 --- a/kong/clustering/services/sync/rpc.lua +++ b/kong/clustering/services/sync/rpc.lua @@ -427,7 +427,7 @@ sync_handler = function(premature, try_counter) end -- retry if the version is not updated - return ngx.timer.at(0, sync_handler, try_counter - 1) + ngx.timer.at(0, sync_handler, try_counter - 1) end