- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for NewLimiter (0.17 sec)
-
internal/bucket/bandwidth/monitor.go
throttle, ok := m.bucketsThrottle[BucketOptions{Name: bucket, ReplicationARN: arn}] if !ok { throttle = &bucketThrottle{} } throttle.NodeBandwidthPerSec = limitBytes throttle.Limiter = rate.NewLimiter(rate.Limit(float64(limitBytes)), int(limitBytes)) m.bucketsThrottle[BucketOptions{Name: bucket, ReplicationARN: arn}] = throttle } // IsThrottled returns true if a bucket has bandwidth throttling enabled.
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Mon Feb 19 22:54:46 GMT 2024 - 6K bytes - Viewed (0)