rob05c commented on code in PR #6708:
URL: https://github.com/apache/trafficcontrol/pull/6708#discussion_r858914340
##########
lib/go-atscfg/strategiesdotconfig.go:
##########
@@ -256,6 +275,22 @@ func getStrategyHostsSection(pa *ParentAbstraction) string
{
txt += getStrategyHostsSectionHost(svc, parent)
}
}
+ if len(pa.Peers) != 0 {
+ count := 1
+ for _, peer := range pa.Peers {
Review Comment:
Nitpick: could use the loop index to avoid a separate variable here, ` for
i, peer := range pa.Peers { txt += getStrategyHostsSectionPeer(peer, i+1)`
--
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]