refactor: remove unused etcd key node_status (#3786)

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
This commit is contained in:
罗泽轩 2021-03-09 17:30:38 +08:00 committed by GitHub
parent c530135c5a
commit 369c6d9163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -955,7 +955,6 @@ etcdctl --endpoints=127.0.0.1:2379 user delete root
init_kv=(
"/apisix/consumers/ init_dir"
"/apisix/global_rules/ init_dir"
"/apisix/node_status/ init_dir"
"/apisix/plugin_metadata/ init_dir"
"/apisix/plugins/ init_dir"
"/apisix/proto/ init_dir"

View File

@ -249,9 +249,9 @@ function _M.init(env, args)
for _, dir_name in ipairs({"/routes", "/upstreams", "/services",
"/plugins", "/consumers", "/node_status",
"/ssl", "/global_rules", "/stream_routes",
"/proto", "/plugin_metadata", "/plugin_configs"}) do
"/plugins", "/consumers", "/ssl",
"/global_rules", "/stream_routes", "/proto",
"/plugin_metadata", "/plugin_configs"}) do
local key = (etcd_conf.prefix or "") .. dir_name .. "/"