Skip to content

Commit 43eaf79

Browse files
JimhHanJimhHan
authored andcommitted
fix code style
1 parent 3201ce9 commit 43eaf79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infra/conf/router.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ type RouterConfig struct {
6969
RuleList []json.RawMessage `json:"rules"`
7070
DomainStrategy *string `json:"domainStrategy"`
7171
Balancers []*BalancingRule `json:"balancers"`
72-
RuleSets []*RuleSet `json:"rule_sets"`
72+
RuleSets []*RuleSet `json:"ruleSets"`
7373
}
7474

7575
func (c *RouterConfig) getDomainStrategy() router.Config_DomainStrategy {
@@ -504,7 +504,7 @@ func parseFieldRule(msg json.RawMessage, skipTargetCheck bool) (*router.RoutingR
504504
InboundTag *StringList `json:"inboundTag"`
505505
Protocols *StringList `json:"protocol"`
506506
Attributes string `json:"attrs"`
507-
RuleSet string `json:"rule_set"`
507+
RuleSet string `json:"ruleSet"`
508508
}
509509
rawFieldRule := new(RawFieldRule)
510510
err := json.Unmarshal(msg, rawFieldRule)

0 commit comments

Comments
 (0)