quota handlers now log against ip properly against a duration

This commit is contained in:
Frederick F. Kautz IV
2015-04-24 20:45:44 -07:00
parent b3a9d8b058
commit e2475925ea
3 changed files with 86 additions and 14 deletions
-13
View File
@@ -145,16 +145,3 @@ func ignoreUnImplementedObjectResources(req *http.Request) bool {
}
return false
}
type quotaHandler struct {
handler http.Handler
}
func (h quotaHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
h.handler.ServeHTTP(w, req)
}
// QuotaHandler implements quotas
func QuotaHandler(h http.Handler) http.Handler {
return quotaHandler{handler: h}
}