diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-02-17 20:57:08 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-02-17 20:57:08 -0800 |
| commit | 3575d41009e4367658e75e6ae780c6260b80daf9 (patch) | |
| tree | bc3330e274901d782395b7396cb54d7cc42608b1 /weed/storage | |
| parent | 6daa932f5c1571cc60cf89014cf17810d756dd6b (diff) | |
| download | seaweedfs-3575d41009e4367658e75e6ae780c6260b80daf9.tar.xz seaweedfs-3575d41009e4367658e75e6ae780c6260b80daf9.zip | |
go fmt
Diffstat (limited to 'weed/storage')
| -rw-r--r-- | weed/storage/store.go | 18 | ||||
| -rw-r--r-- | weed/storage/types/volume_disk_type.go | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/weed/storage/store.go b/weed/storage/store.go index 92f1db2bc..47829666a 100644 --- a/weed/storage/store.go +++ b/weed/storage/store.go @@ -285,15 +285,15 @@ func (s *Store) CollectHeartbeat() *master_pb.Heartbeat { } return &master_pb.Heartbeat{ - Ip: s.Ip, - Port: uint32(s.Port), - PublicUrl: s.PublicUrl, - MaxVolumeCounts: maxVolumeCounts, - MaxFileKey: NeedleIdToUint64(maxFileKey), - DataCenter: s.dataCenter, - Rack: s.rack, - Volumes: volumeMessages, - HasNoVolumes: len(volumeMessages) == 0, + Ip: s.Ip, + Port: uint32(s.Port), + PublicUrl: s.PublicUrl, + MaxVolumeCounts: maxVolumeCounts, + MaxFileKey: NeedleIdToUint64(maxFileKey), + DataCenter: s.dataCenter, + Rack: s.rack, + Volumes: volumeMessages, + HasNoVolumes: len(volumeMessages) == 0, } } diff --git a/weed/storage/types/volume_disk_type.go b/weed/storage/types/volume_disk_type.go index 0e199a626..25056ee10 100644 --- a/weed/storage/types/volume_disk_type.go +++ b/weed/storage/types/volume_disk_type.go @@ -25,7 +25,7 @@ func ToDiskType(vt string) (diskType DiskType) { return } -func (diskType DiskType) String() string{ +func (diskType DiskType) String() string { if diskType == "" { return "" } |
