remove the redundant type conversion

This commit is contained in:
stlpmo 2019-12-25 10:13:45 +08:00
parent 3ebeae0c0b
commit f3de4b6c18

View file

@ -208,8 +208,8 @@ func (v *Volume) ToVolumeInformationMessage() *master_pb.VolumeInformationMessag
Id: uint32(v.Id),
Size: size,
Collection: v.Collection,
FileCount: uint64(v.FileCount()),
DeleteCount: uint64(v.DeletedCount()),
FileCount: v.FileCount(),
DeleteCount: v.DeletedCount(),
DeletedByteCount: v.DeletedSize(),
ReadOnly: v.noWriteOrDelete,
ReplicaPlacement: uint32(v.ReplicaPlacement.Byte()),