Skip to content

Commit

Permalink
fix: fix service group and version key
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceLiZhixin committed Nov 25, 2021
1 parent 1c92dde commit 5e2b72f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config/service_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,12 @@ func (svc *ServiceConfig) getUrlMap() url.Values {
urlMap.Set(constant.LoadbalanceKey, svc.Loadbalance)
urlMap.Set(constant.WarmupKey, svc.Warmup)
urlMap.Set(constant.RetriesKey, svc.Retries)
urlMap.Set(constant.GroupKey, svc.Group)
urlMap.Set(constant.VersionKey, svc.Version)
if svc.Group != "" {
urlMap.Set(constant.GroupKey, svc.Group)
}
if svc.Version != "" {
urlMap.Set(constant.VersionKey, svc.Version)
}
urlMap.Set(constant.RegistryRoleKey, strconv.Itoa(common.PROVIDER))
urlMap.Set(constant.ReleaseKey, "dubbo-golang-"+constant.Version)
urlMap.Set(constant.SideKey, (common.RoleType(common.PROVIDER)).Role())
Expand Down

0 comments on commit 5e2b72f

Please sign in to comment.