mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-27 19:53:41 +08:00
fix (rate limit): update default value for rate limit
This commit is contained in:
@ -99,7 +99,7 @@ func SecureAjax(fn func(*App, http.ResponseWriter, *http.Request)) func(ctx *App
|
||||
}
|
||||
}
|
||||
|
||||
var limiter = rate.NewLimiter(5, 1000)
|
||||
var limiter = rate.NewLimiter(10, 1000)
|
||||
|
||||
func RateLimiter(fn func(*App, http.ResponseWriter, *http.Request)) func(ctx *App, res http.ResponseWriter, req *http.Request) {
|
||||
return func(ctx *App, res http.ResponseWriter, req *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user