mirror of
https://github.com/minio/minio.git
synced 2025-11-22 10:37:42 -05:00
Add disk detection for Linux, add new RPC service GetDiskInfoService(), remove dummy HelloService()
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/minio/minio/pkg/iodine"
|
||||
"github.com/minio/minio/pkg/server/api"
|
||||
)
|
||||
|
||||
@@ -38,7 +39,7 @@ func startAPI(errCh chan error, conf api.Config, apiHandler http.Handler) {
|
||||
|
||||
host, port, err := net.SplitHostPort(conf.Address)
|
||||
if err != nil {
|
||||
errCh <- err
|
||||
errCh <- iodine.New(err, nil)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -49,7 +50,7 @@ func startAPI(errCh chan error, conf api.Config, apiHandler http.Handler) {
|
||||
default:
|
||||
addrs, err := net.InterfaceAddrs()
|
||||
if err != nil {
|
||||
errCh <- err
|
||||
errCh <- iodine.New(err, nil)
|
||||
return
|
||||
}
|
||||
for _, addr := range addrs {
|
||||
@@ -109,8 +110,8 @@ func StartServices(conf api.Config) error {
|
||||
|
||||
select {
|
||||
case err := <-apiErrCh:
|
||||
return err
|
||||
return iodine.New(err, nil)
|
||||
case err := <-rpcErrCh:
|
||||
return err
|
||||
return iodine.New(err, nil)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user