Skip to content

Commit

Permalink
perf: replace 'string.find' with 'core.string.find'
Browse files Browse the repository at this point in the history
  • Loading branch information
xuruidong authored Jan 4, 2025
1 parent 284632f commit c548d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apisix/core/config_etcd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c548d32

Please sign in to comment.