Remove repeated etcd endpoint configuration (#21860)

Signed-off-by: jaime <yun.zhang@zilliz.com>
This commit is contained in:
jaime 2023-01-30 12:07:48 +08:00 committed by GitHub
parent e14f96a8e4
commit 5ed6ae2f27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,8 +122,9 @@ func (p *EtcdConfig) Init(base *BaseTable) {
} }
p.ConfigPath = ParamItem{ p.ConfigPath = ParamItem{
Key: "etcd.config.path", Key: "etcd.config.path",
Version: "2.1.0", DefaultValue: "",
Version: "2.1.0",
} }
p.ConfigPath.Init(base.mgr) p.ConfigPath.Init(base.mgr)
@ -134,13 +135,6 @@ func (p *EtcdConfig) Init(base *BaseTable) {
} }
p.DataDir.Init(base.mgr) p.DataDir.Init(base.mgr)
p.Endpoints = ParamItem{
Key: "etcd.endpoints",
Version: "2.0.0",
PanicIfEmpty: true,
}
p.Endpoints.Init(base.mgr)
p.RootPath = ParamItem{ p.RootPath = ParamItem{
Key: "etcd.rootPath", Key: "etcd.rootPath",
Version: "2.0.0", Version: "2.0.0",