mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
fix: do not copy context in DiskInfo cache (#17085)
This commit is contained in:
@@ -607,7 +607,7 @@ func (s *xlStorage) NSScanner(ctx context.Context, cache dataUsageCache, updates
|
||||
|
||||
// DiskInfo provides current information about disk space usage,
|
||||
// total free inodes and underlying filesystem.
|
||||
func (s *xlStorage) DiskInfo(context.Context) (info DiskInfo, err error) {
|
||||
func (s *xlStorage) DiskInfo(_ context.Context) (info DiskInfo, err error) {
|
||||
s.diskInfoCache.Once.Do(func() {
|
||||
s.diskInfoCache.TTL = time.Second
|
||||
s.diskInfoCache.Update = func() (interface{}, error) {
|
||||
|
||||
Reference in New Issue
Block a user