You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2020/08/12 12:09:57 UTC
[GitHub] [dubbo-go] watermelo commented on a change in pull request #703: Ftr: add dynamic tag router
watermelo commented on a change in pull request #703:
URL: https://github.com/apache/dubbo-go/pull/703#discussion_r469210009
##########
File path: cluster/router/tag/router_rule.go
##########
@@ -22,9 +22,27 @@ import (
"github.com/apache/dubbo-go/common/yaml"
)
+/**
+ * %YAML1.2
+ * ---
+ * force: true
+ * runtime: false
+ * enabled: true
+ * priority: 1
+ * key: demo-provider
+ * tags:
+ * - name: tag1
+ * addresses: [ip1, ip2]
+ * - name: tag2
+ * addresses: [ip3, ip4]
+ * ...
+ */
// RouterRule RouterRule config read from config file or config center
type RouterRule struct {
- router.BaseRouterRule `yaml:",inline"`
+ router.BaseRouterRule `yaml:",inline""`
Review comment:
It's old codes on purpose, when delete it will be parsed fail
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org