revert previous change

revert 29e62aba00
This commit is contained in:
Chris Lu 2021-03-14 20:49:56 -07:00
parent 29e62aba00
commit 352ba23f83

View file

@ -201,7 +201,7 @@ type CapacityFunc func(*master_pb.DataNodeInfo) int
func capacityByMaxVolumeCount(diskType types.DiskType) CapacityFunc {
return func(info *master_pb.DataNodeInfo) int {
diskInfo, found := info.DiskInfos[diskType.ReadableString()]
diskInfo, found := info.DiskInfos[string(diskType)]
if !found {
return 0
}