Skip to content

Commit

Permalink
fix: reference_config add consumer category (apache#1659)
Browse files Browse the repository at this point in the history
  • Loading branch information
xfstart07 committed Dec 12, 2021
1 parent 9b86b2d commit 05c962c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/constant/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ const (
CONDITION_ROUTE_PROTOCOL = "condition"
TAG_ROUTE_PROTOCOL = "tag"
PROVIDERS_CATEGORY = "providers"
CONSUMERS_CATEGORY = "consumers"
ROUTER_KEY = "router"
EXPORT_KEY = "export"
)
Expand Down
3 changes: 2 additions & 1 deletion config/reference_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ func (c *ReferenceConfig) getUrlMap() url.Values {

urlMap.Set(constant.RELEASE_KEY, "dubbo-golang-"+constant.Version)
urlMap.Set(constant.SIDE_KEY, (common.RoleType(common.CONSUMER)).Role())

urlMap.Set(constant.CATEGORY_KEY, constant.CONSUMERS_CATEGORY)

if len(c.RequestTimeout) != 0 {
urlMap.Set(constant.TIMEOUT_KEY, c.RequestTimeout)
}
Expand Down

0 comments on commit 05c962c

Please sign in to comment.