From 57c58d81838242eedc60d509c7601b3f0bf4ac9e Mon Sep 17 00:00:00 2001
From: Patrick <dreamlike.sky@foxmail.com>
Date: Mon, 6 Apr 2020 22:17:26 +0800
Subject: [PATCH] remove the reference url category

---
 config/reference_config.go | 1 -
 config/service_config.go   | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/reference_config.go b/config/reference_config.go
index b9f3da135..dcdba9580 100644
--- a/config/reference_config.go
+++ b/config/reference_config.go
@@ -188,7 +188,6 @@ func (c *ReferenceConfig) getUrlMap() url.Values {
 	urlMap.Set(constant.VERSION_KEY, c.Version)
 	urlMap.Set(constant.GENERIC_KEY, strconv.FormatBool(c.Generic))
 	urlMap.Set(constant.ROLE_KEY, strconv.Itoa(common.CONSUMER))
-	urlMap.Set(constant.CATEGORY_KEY, (common.RoleType(common.CONSUMER)).String())
 	urlMap.Set(constant.RELEASE_KEY, "dubbo-golang-"+constant.Version)
 	urlMap.Set(constant.SIDE_KEY, (common.RoleType(common.CONSUMER)).Role())
 
diff --git a/config/service_config.go b/config/service_config.go
index 50bf5e12c..d8b155102 100644
--- a/config/service_config.go
+++ b/config/service_config.go
@@ -196,6 +196,7 @@ func (c *ServiceConfig) getUrlMap() url.Values {
 	urlMap.Set(constant.GROUP_KEY, c.Group)
 	urlMap.Set(constant.VERSION_KEY, c.Version)
 	urlMap.Set(constant.ROLE_KEY, strconv.Itoa(common.PROVIDER))
+	urlMap.Set(constant.CATEGORY_KEY, (common.RoleType(common.PROVIDER)).String())
 	urlMap.Set(constant.RELEASE_KEY, "dubbo-golang-"+constant.Version)
 	urlMap.Set(constant.SIDE_KEY, (common.RoleType(common.PROVIDER)).Role())
 
-- 
GitLab