From 15609ceb8380c16106abe370cc1e5401cbe8019d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E6=B3=BD=E8=BD=A9?= Date: Sun, 17 Jan 2021 20:36:23 -0600 Subject: [PATCH] chore: remove the obsolote etcd v2 protocol error (#3291) PR #3258 doesn't remove it entirely. Signed-off-by: spacewander --- apisix/core/config_etcd.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apisix/core/config_etcd.lua b/apisix/core/config_etcd.lua index 303281cb0959..4f3f9d1d0e67 100644 --- a/apisix/core/config_etcd.lua +++ b/apisix/core/config_etcd.lua @@ -324,13 +324,6 @@ local function sync_data(self) end if not res then - if err == "The event in requested index is outdated and cleared" then - self.need_reload = true - log.warn("waitdir [", self.key, "] err: ", err, - ", need to fully reload") - return false - end - return false, err end