Skip to content

Commit 4113aa3

Browse files
committed
Change comment
1 parent ba20751 commit 4113aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/controller/nginx/config/servers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ func updateLocationMirrorFilters(
541541
location.MirrorPaths = deduplicateStrings(location.MirrorPaths)
542542
}
543543

544-
// if the mirrorPercentage is 100.0 or negative (we set it to negative when there is no mirror filter because 0.0
545-
// is valid), the split clients variable is not generated, and we want to let all the traffic get mirrored.
544+
// if mirrorPercentage is nil (no mirror filter configured) or 100.0, the split clients variable is not generated,
545+
// and we let all traffic get mirrored.
546546
if mirrorPercentage != nil && *mirrorPercentage != 100.0 {
547547
location.MirrorSplitClientsVariableName = convertSplitClientVariableName(
548548
fmt.Sprintf("%s_%.2f", path, *mirrorPercentage),

0 commit comments

Comments
 (0)