Yiyiyimu commented on a change in pull request #2299:
URL: https://github.com/apache/apisix/pull/2299#discussion_r495820272
##########
File path: apisix/core/etcd.lua
##########
@@ -36,6 +36,7 @@ local function new()
etcd_conf.host = nil
etcd_conf.prefix = nil
etcd_conf.protocol = "v3"
+ etcd_conf.api_prefix = "/v3"
Review comment:
In lua-resty-etcd. If api_prefix is not set, it would check the version
of etcd to find the correct api_prefix to use in uri. Since we support etcd
v3.4+ only, we could directly set it to avoid useless version check each time.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]