Skip to content

Commit 6b39728

Browse files
author
Kate Osborn
committed
Move comment
1 parent 549a188 commit 6b39728

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/state/dataplane/configuration.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,11 @@ func (hpr *hostPathRules) buildServers() []VirtualServer {
426426
}
427427

428428
// maxServerCount returns the maximum number of VirtualServers that can be built from the host path rules.
429-
// to calculate max # of servers we add up:
430-
// - # of hostnames
431-
// - # of https listeners - this is to account for https wildcard default servers
432-
// - default server - for every hostPathRules we generate 1 default server.
433429
func (hpr *hostPathRules) maxServerCount() int {
430+
// to calculate max # of servers we add up:
431+
// - # of hostnames
432+
// - # of https listeners - this is to account for https wildcard default servers
433+
// - default server - for every hostPathRules we generate 1 default server
434434
return len(hpr.rulesPerHost) + len(hpr.httpsListeners) + 1
435435
}
436436

0 commit comments

Comments
 (0)