mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49: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
@@ -368,7 +368,7 @@ func undoMakeBucketSets(bucket string, sets []*xlObjects, errs []error) {
|
||||
index := index
|
||||
if errs[index] == nil {
|
||||
g.Go(func() error {
|
||||
return sets[index].DeleteBucket(nil, bucket)
|
||||
return sets[index].DeleteBucket(context.Background(), bucket)
|
||||
}, index)
|
||||
}
|
||||
}
|
||||
@@ -509,7 +509,7 @@ func undoDeleteBucketSets(bucket string, sets []*xlObjects, errs []error) {
|
||||
index := index
|
||||
if errs[index] == nil {
|
||||
g.Go(func() error {
|
||||
return sets[index].MakeBucketWithLocation(nil, bucket, "")
|
||||
return sets[index].MakeBucketWithLocation(context.Background(), bucket, "")
|
||||
}, index)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user