mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
go fmt
This commit is contained in:
parent
b1a86cf808
commit
e9b1853d63
|
@ -180,4 +180,4 @@ func TestBalance(t *testing.T) {
|
||||||
t.Errorf("balance: %v", err)
|
t.Errorf("balance: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ func parseOutput(output string) *master_pb.TopologyInfo {
|
||||||
maxVolumeCountStr := parts[1][strings.Index(parts[1], "/")+1:]
|
maxVolumeCountStr := parts[1][strings.Index(parts[1], "/")+1:]
|
||||||
maxVolumeCount, _ := strconv.Atoi(maxVolumeCountStr)
|
maxVolumeCount, _ := strconv.Atoi(maxVolumeCountStr)
|
||||||
disk = &master_pb.DiskInfo{
|
disk = &master_pb.DiskInfo{
|
||||||
Type: diskType,
|
Type: diskType,
|
||||||
MaxVolumeCount: uint64(maxVolumeCount),
|
MaxVolumeCount: uint64(maxVolumeCount),
|
||||||
}
|
}
|
||||||
dn.DiskInfos[types.ToDiskType(diskType).String()] = disk
|
dn.DiskInfos[types.ToDiskType(diskType).String()] = disk
|
||||||
|
|
Loading…
Reference in a new issue