This is an automated email from the ASF dual-hosted git repository.
membphis 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 100f290cc perf: replace 'string.find' with 'core.string.find' (#11886)
100f290cc is described below
commit 100f290cc501cdfce064ee7a6771eacfc87bf89e
Author: xuruidong <[email protected]>
AuthorDate: Wed Feb 5 09:51:30 2025 +0800
perf: replace 'string.find' with 'core.string.find' (#11886)
Co-authored-by: Ashish Tiwari <[email protected]>
---
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 a415fbfe5..76942adfe 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