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

delete useless file

parent 0a8a866d
No related branches found
No related tags found
No related merge requests found
......@@ -315,27 +315,6 @@ func (c URL) Key() string {
//return c.ServiceKey()
}
// ColonSeparatedKey The format is "{interface}:[version]:[group]"
func (c *URL) ColonSeparatedKey() string {
intf := c.GetParam(constant.INTERFACE_KEY, strings.TrimPrefix(c.Path, "/"))
if intf == "" {
return ""
}
buf := &bytes.Buffer{}
buf.WriteString(intf)
buf.WriteString(":")
version := c.GetParam(constant.VERSION_KEY, "")
if version != "" && version != "0.0.0" {
buf.WriteString(version)
}
group := c.GetParam(constant.GROUP_KEY, "")
buf.WriteString(":")
if group != "" {
buf.WriteString(group)
}
return buf.String()
}
// ServiceKey ...
func (c URL) ServiceKey() string {
intf := c.GetParam(constant.INTERFACE_KEY, strings.TrimPrefix(c.Path, "/"))
......
......@@ -35,6 +35,7 @@ var (
providerConfig *ProviderConfig
metricConfig *MetricConfig
applicationConfig *ApplicationConfig
routerConfig *ConditionRouterConfig
maxWait = 3
)
......
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