Aetherance commented on code in PR #3252:
URL: https://github.com/apache/dubbo-go/pull/3252#discussion_r2959117621


##########
client/options.go:
##########
@@ -467,6 +468,14 @@ func WithParam(k, v string) ReferenceOption {
        }
 }
 
+func WithRouter(routers ...*global.RouterConfig) ReferenceOption {
+       return func(opts *ReferenceOptions) {
+               if len(routers) > 0 {
+                       opts.Routers = append(opts.Routers, routers...)
+               }
+       }
+}

Review Comment:
   后续会在文档中写清楚静态配置和动态配置的关系



-- 
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]

Reply via email to