You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is the config.go file in the limiter package. The file contains definition of config for limiter middleware. It has a field Max which sets maximum amount of requests. According to the comment beside it implies number of connections during Duration seconds, but Duration field is deprecated and Expiration field to be used instead. The comment is also confusing because the doc page about the limiter middleware does not have any mention for the Duration field at all except for the comment itself.
The text was updated successfully, but these errors were encountered:
There is the config.go file in the limiter package. The file contains definition of config for limiter middleware. It has a field
Max
which sets maximum amount of requests. According to the comment beside it implies number of connections duringDuration
seconds, butDuration
field is deprecated andExpiration
field to be used instead. The comment is also confusing because the doc page about the limiter middleware does not have any mention for theDuration
field at all except for the comment itself.The text was updated successfully, but these errors were encountered: