Skip to content

Commit

Permalink
Change positive to non-negative
Browse files Browse the repository at this point in the history
  • Loading branch information
peanutduck committed Jun 12, 2024
1 parent f72101b commit 1c23013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/caddyhttp/reverseproxy/selectionpolicies.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (r *WeightedRoundRobinSelection) UnmarshalCaddyfile(d *caddyfile.Dispenser)
return d.Errf("invalid weight value '%s': %v", weight, err)
}
if weightInt < 0 {
return d.Errf("invalid weight value '%s': weight should be positive", weight)
return d.Errf("invalid weight value '%s': weight should be non-negative", weight)
}
r.Weights = append(r.Weights, weightInt)
}
Expand Down

0 comments on commit 1c23013

Please sign in to comment.