didip / tollbooth_chi

Tollbooth - Chi integration layer
13 stars 7 forks source link

Fixed Example in README.md #2

Closed adueck closed 4 years ago

adueck commented 5 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.

paskal commented 4 years ago

@didip sounds reasonable, would you be so kind as to take a look?