mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Use context.Background() instead of nil
Rename Context[Get|Set] -> [Get|Set]Context
This commit is contained in:
committed by
kannappanr
parent
33fe42df8a
commit
9ede179a21
@@ -168,7 +168,7 @@ func healBucketMetadata(xl xlObjects, bucket string, dryRun bool) (
|
||||
results []madmin.HealResultItem, err error) {
|
||||
|
||||
healBucketMetaFn := func(metaPath string) error {
|
||||
result, healErr := xl.HealObject(nil, minioMetaBucket, metaPath, dryRun)
|
||||
result, healErr := xl.HealObject(context.Background(), minioMetaBucket, metaPath, dryRun)
|
||||
// If object is not found, no result to add.
|
||||
if isErrObjectNotFound(healErr) {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user