diff --git a/common/url.go b/common/url.go index a9f64453f81d5d4515ca0c88158870dcb20384cd..a9a679aff2fc7471ce0894711f4ad19d05674744 100644 --- a/common/url.go +++ b/common/url.go @@ -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, "/")) diff --git a/config/config_loader.go b/config/config_loader.go index f463c27cb61026125d7d0d86d534cd8071c59de1..e45ccaf4a3d28dbbd777be18106c03bb9c7bb9f4 100644 --- a/config/config_loader.go +++ b/config/config_loader.go @@ -35,6 +35,7 @@ var ( providerConfig *ProviderConfig metricConfig *MetricConfig applicationConfig *ApplicationConfig + routerConfig *ConditionRouterConfig maxWait = 3 )