update madmin-go dependency, update related code (#12669)

This commit is contained in:
Anis Elleuch
2021-07-12 18:16:10 +01:00
committed by GitHub
parent bc8962102f
commit 8625cfdfae
4 changed files with 6 additions and 4 deletions

View File

@@ -106,7 +106,7 @@ func getDrivePerfInfos(ctx context.Context, addr string) madmin.DrivePerfInfos {
serialPerf := getDrivePerfInfo(ctx, false)
parallelPerf := getDrivePerfInfo(ctx, true)
return madmin.DrivePerfInfos{
Addr: addr,
NodeCommon: madmin.NodeCommon{Addr: addr},
SerialPerf: serialPerf,
ParallelPerf: parallelPerf,
}

View File

@@ -860,7 +860,7 @@ func (sys *NotificationSys) GetNetPerfInfo(ctx context.Context) madmin.NetPerfIn
}
}
return madmin.NetPerfInfo{
Addr: globalLocalNodeName,
NodeCommon: madmin.NodeCommon{Addr: globalLocalNodeName},
RemotePeers: netInfos,
}
}
@@ -935,7 +935,7 @@ func (sys *NotificationSys) GetParallelNetPerfInfo(ctx context.Context) madmin.N
}
wg.Wait()
return madmin.NetPerfInfo{
Addr: globalLocalNodeName,
NodeCommon: madmin.NodeCommon{Addr: globalLocalNodeName},
RemotePeers: netInfos,
}
}