Skip to content

Commit

Permalink
fix fallbackTag missing on leastping balancer
Browse files Browse the repository at this point in the history
This fix fallbackTag not working when balancer type is set to "leastping"
  • Loading branch information
povsister authored and xiaokangwang committed Aug 19, 2024
1 parent c1bc8a0 commit 863479b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/router/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (br *BalancingRule) Build(ohm outbound.Manager, dispatcher routing.Dispatch
return &Balancer{
selectors: br.OutboundSelector,
strategy: &LeastPingStrategy{config: s},
ohm: ohm,
ohm: ohm, fallbackTag: br.FallbackTag,
}, nil
case "leastload":
i, err := serial.GetInstanceOf(br.StrategySettings)
Expand Down

0 comments on commit 863479b

Please sign in to comment.