mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -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
@@ -17,6 +17,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/x509"
|
||||
"fmt"
|
||||
"net/url"
|
||||
@@ -50,7 +51,7 @@ func printStartupMessage(apiEndPoints []string) {
|
||||
// Object layer is initialized then print StorageInfo.
|
||||
objAPI := newObjectLayerFn()
|
||||
if objAPI != nil {
|
||||
printStorageInfo(objAPI.StorageInfo(nil))
|
||||
printStorageInfo(objAPI.StorageInfo(context.Background()))
|
||||
}
|
||||
|
||||
// Prints credential, region and browser access.
|
||||
|
||||
Reference in New Issue
Block a user