diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2019-12-25 17:02:05 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-25 17:02:05 -0800 |
| commit | 1346437d7193405b0a4ef52a0fbed37edafbfb33 (patch) | |
| tree | 7e71c4d5f9cff6ad2976ddd01023cd05c1bfc17d | |
| parent | 35393b4a028abb966ce463dab54b2e7c4aa57db2 (diff) | |
| parent | f3de4b6c188e5e450121b861ca74c5ab5cae8d59 (diff) | |
| download | seaweedfs-1346437d7193405b0a4ef52a0fbed37edafbfb33.tar.xz seaweedfs-1346437d7193405b0a4ef52a0fbed37edafbfb33.zip | |
Merge pull request #1171 from stlpmo-jn/redundant_type_conversion
remove the redundant type conversion
| -rw-r--r-- | weed/storage/volume.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go index 946f044eb..139f433c7 100644 --- a/weed/storage/volume.go +++ b/weed/storage/volume.go @@ -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()), |
