mirror of
https://github.com/minio/minio.git
synced 2026-02-05 02:10:14 -05:00
re-implement StorageInfo to be a peer call (#16155)
This commit is contained in:
@@ -37,11 +37,6 @@ func getFormatStr(strLen int, padding int) string {
|
||||
return "%" + formatStr
|
||||
}
|
||||
|
||||
func mustGetStorageInfo(objAPI ObjectLayer) StorageInfo {
|
||||
storageInfo, _ := objAPI.StorageInfo(GlobalContext)
|
||||
return storageInfo
|
||||
}
|
||||
|
||||
// Prints the formatted startup message.
|
||||
func printStartupMessage(apiEndpoints []string, err error) {
|
||||
logger.Info(color.Bold("MinIO Object Storage Server"))
|
||||
@@ -67,7 +62,7 @@ func printStartupMessage(apiEndpoints []string, err error) {
|
||||
// Object layer is initialized then print StorageInfo.
|
||||
objAPI := newObjectLayerFn()
|
||||
if objAPI != nil {
|
||||
printStorageInfo(mustGetStorageInfo(objAPI))
|
||||
printStorageInfo(objAPI.StorageInfo(GlobalContext))
|
||||
}
|
||||
|
||||
// Prints credential, region and browser access.
|
||||
|
||||
Reference in New Issue
Block a user