Skip to content

Commit

Permalink
fix: fix service group and version key (#1612)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceLiZhixin committed Nov 25, 2021
1 parent 1c92dde commit fe19465
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config/service_config.go
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 fe19465

Please sign in to comment.