Skip to content

Commit 100f290

Browse files
perf: replace 'string.find' with 'core.string.find' (#11886)
Co-authored-by: Ashish Tiwari <ashishjaitiwari15112000@gmail.com>
1 parent 8a4c023 commit 100f290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apisix/core/config_etcd.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ local function _automatic_fetch(premature, self)
853853
i = i + 1
854854
ngx_sleep(backoff_duration)
855855
_, err = sync_data(self)
856-
if not err or not string.find(err, err_etcd_unhealthy_all) then
856+
if not err or not core_str.find(err, err_etcd_unhealthy_all) then
857857
log.warn("reconnected to etcd")
858858
reconnected = true
859859
break

0 commit comments

Comments
 (0)