marsevilspirit commented on code in PR #2868:
URL: https://github.com/apache/dubbo-go/pull/2868#discussion_r2084697384
##########
server/options.go:
##########
@@ -80,6 +80,11 @@ func (srvOpts *ServerOptions) init(opts ...ServerOption)
error {
prov := srvOpts.Provider
+ if srvOpts.Provider.Weight <= 0 {
Review Comment:
删除ServiceConfig中Weight字段,使用registoryConfig中的Weight字段
##########
server/action.go:
##########
@@ -381,6 +381,9 @@ func (svcOpts *ServiceOptions) getUrlMap() url.Values {
urlMap.Set(constant.ExportKey, strconv.FormatBool(svcOpts.needExport))
urlMap.Set(constant.PIDKey, fmt.Sprintf("%d", os.Getpid()))
+ // fix issue #2864, align with the implementation in Dubbo-Java
+ urlMap.Set(constant.WeightKey,
strconv.FormatInt(svcOpts.Provider.Weight, 10))
Review Comment:
删除ServiceConfig中Weight字段,使用registoryConfig中的Weight字段
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]