Merge pull request #1171 from stlpmo-jn/redundant_type_conversion

remove the redundant type conversion
This commit is contained in:
Chris Lu 2019-12-25 17:02:05 -08:00 committed by GitHub
commit 1346437d71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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