mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Remove unnecessary contexts passed as data to FatalIf. No need to log an empty context. (#6487)
This commit is contained in:
committed by
Harshavardhana
parent
584cb61bb8
commit
df60b3c733
@@ -689,7 +689,7 @@ func setBucketForwardingHandler(h http.Handler) http.Handler {
|
||||
// canceled immediately.
|
||||
func setRateLimitHandler(h http.Handler) http.Handler {
|
||||
_, maxLimit, err := sys.GetMaxOpenFileLimit()
|
||||
logger.FatalIf(err, "Unable to get maximum open file limit", context.Background())
|
||||
logger.FatalIf(err, "Unable to get maximum open file limit")
|
||||
// Burst value is set to 1 to allow only maxOpenFileLimit
|
||||
// requests to happen at once.
|
||||
l := rate.NewLimiter(rate.Limit(maxLimit), 1)
|
||||
|
||||
Reference in New Issue
Block a user