Skip to content

Commit

Permalink
change: upgrade etcd to version 0.8 and modify the connection keys. (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
shuaijinchao authored and SaberMaster committed Jun 30, 2020
1 parent e22cf32 commit f521373
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lua/apisix/core/config_etcd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ function _M.new(key, opts)

local etcd_conf = clone_tab(local_conf.etcd)
local prefix = etcd_conf.prefix
etcd_conf.http_host = etcd_conf.host
etcd_conf.host = nil
etcd_conf.prefix = nil

local etcd_cli
Expand Down
2 changes: 2 additions & 0 deletions lua/apisix/core/etcd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ local function new()

local etcd_conf = clone_tab(local_conf.etcd)
local prefix = etcd_conf.prefix
etcd_conf.http_host = etcd_conf.host
etcd_conf.host = nil
etcd_conf.prefix = nil

local etcd_cli
Expand Down
2 changes: 1 addition & 1 deletion rockspec/apisix-master-0.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ description = {

dependencies = {
"lua-resty-template = 1.9",
"lua-resty-etcd = 0.7",
"lua-resty-etcd = 0.8",
"lua-resty-balancer = 0.02rc5",
"lua-resty-ngxvar = 0.4",
"lua-resty-jit-uuid = 0.0.7",
Expand Down

0 comments on commit f521373

Please sign in to comment.