Add a ratelimited listener than a ratelimited handler - more precise

This commit is contained in:
Harshavardhana
2015-07-13 10:26:04 -07:00
parent 8af5933b07
commit 1bad92356d
6 changed files with 124 additions and 56 deletions

View File

@@ -89,7 +89,6 @@ func registerCustomMiddleware(mux http.Handler, conf api.Config) http.Handler {
)
mux = ch.final(mux)
mux = api.RateLimitHandler(mux, conf.RateLimit)
return mux
}