Skip to content
Snippets Groups Projects
Commit 622d86aa authored by 邹毅贤's avatar 邹毅贤
Browse files

refactor config center

parent 743ca062
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,11 @@ func (b *configCenter) toURL(baseConfig BaseConfig) (common.URL, error) {
return common.NewURL(baseConfig.ConfigCenterConfig.Address,
common.WithProtocol(baseConfig.ConfigCenterConfig.Protocol), common.WithParams(baseConfig.ConfigCenterConfig.GetUrlMap()))
}
return baseConfig.toURL(baseConfig.ConfigCenterConfig.RemoteRef, baseConfig.ConfigCenterConfig.Protocol)
newURL, err := baseConfig.toURL(baseConfig.ConfigCenterConfig.RemoteRef, baseConfig.ConfigCenterConfig.Protocol)
if err == nil {
newURL.SetParams(baseConfig.ConfigCenterConfig.GetUrlMap())
}
return newURL, err
}
// startConfigCenter will start the config center.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment