fix: do not copy context in DiskInfo cache (#17085)

This commit is contained in:
Harshavardhana
2023-04-26 12:13:54 -07:00
committed by GitHub
parent ebfe81e5fd
commit 8c874884fc
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {