Skip to content

Commit 54a92ab

Browse files
authored
ratelimitprocessor: class: Remove burst validation (#842)
Removes the incorrect burst validation. Rate may not be per second, while Burst is always per second. Signed-off-by: Marc Lopez Rubio <[email protected]>
1 parent 05ea608 commit 54a92ab

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

processor/ratelimitprocessor/config.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ func (c *Class) Validate() error {
126126
if c.Burst < 0 {
127127
errs = append(errs, errors.New("burst must be non-negative"))
128128
}
129-
if c.Burst > 0 && c.Burst < c.Rate {
130-
errs = append(errs, errors.New("burst must be greater than or equal to rate when specified"))
131-
}
132129
return errors.Join(errs...)
133130
}
134131

0 commit comments

Comments
 (0)