From c548d32f5da1ac64ab9403d4420efc783bec6cf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E7=91=9E=E4=B8=9C?= Date: Sat, 4 Jan 2025 16:39:36 +0800 Subject: [PATCH] perf: replace 'string.find' with 'core.string.find' --- 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 a415fbfe527b..76942adfefd5 100644 --- a/apisix/core/config_etcd.lua +++ b/apisix/core/config_etcd.lua @@ -853,7 +853,7 @@ local function _automatic_fetch(premature, self) i = i + 1 ngx_sleep(backoff_duration) _, err = sync_data(self) - if not err or not string.find(err, err_etcd_unhealthy_all) then + if not err or not core_str.find(err, err_etcd_unhealthy_all) then log.warn("reconnected to etcd") reconnected = true break