Closed adueck closed 4 years ago
With the latest version of Chi (4.0.0) the example in the README.md produces the following error:
./main.go:107:33: too many arguments in call to tollbooth.NewLimiter have (number, time.Duration, nil) want (float64, *limiter.ExpirableOptions)
Removing the middle argument time.Second resolves this.
time.Second
@didip sounds reasonable, would you be so kind as to take a look?
With the latest version of Chi (4.0.0) the example in the README.md produces the following error:
Removing the middle argument
time.Second
resolves this.