Skip to content

Commit

Permalink
chore: remove the obsolote etcd v2 protocol error (#3258)
Browse files Browse the repository at this point in the history
The 401 error is only for v2, so it is safe to remove it now.
  • Loading branch information
spacewander authored Jan 13, 2021
1 parent 57e3209 commit 07e37bb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions apisix/core/config_etcd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,6 @@ local function sync_data(self)
local res = dir_res.body.node
local err_msg = dir_res.body.message
if err_msg then
if err_msg == "The event in requested index is outdated and cleared"
and dir_res.body.errorCode == 401 then
self.need_reload = true
log.warn("waitdir [", self.key, "] err: ", err_msg,
", need to fully reload")
return false
end
return false, err
end

Expand Down

0 comments on commit 07e37bb

Please sign in to comment.