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
+2 -1
View File
@@ -22,6 +22,7 @@ import (
router "github.com/gorilla/mux"
"github.com/minio-io/minio/pkg/api/config"
"github.com/minio-io/minio/pkg/api/quota"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio-io/minio/pkg/storage/drivers"
)
@@ -91,5 +92,5 @@ func HTTPHandler(domain string, driver drivers.Driver) http.Handler {
h := validateHandler(conf, ignoreResourcesHandler(mux))
// quota handler is always last
return QuotaHandler(h)
return quota.Handler(h, int64(100*1024*1024))
}