From 0cc8347a3ae28b664014a35af14db42bd42b9dae Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 28 Dec 2019 21:13:10 -0800 Subject: [PATCH] go fmt --- weed/pb/volume_info.go | 2 -- weed/server/volume_grpc_erasure_coding.go | 1 - weed/server/volume_grpc_tier_upload.go | 2 +- weed/storage/volume_loading.go | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/weed/pb/volume_info.go b/weed/pb/volume_info.go index ffae6c87e..661e5b003 100644 --- a/weed/pb/volume_info.go +++ b/weed/pb/volume_info.go @@ -12,10 +12,8 @@ import ( "github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb" - ) - // MaybeLoadVolumeInfo load the file data as *volume_server_pb.VolumeInfo, the returned volumeInfo will not be nil func MaybeLoadVolumeInfo(fileName string) (*volume_server_pb.VolumeInfo, bool) { diff --git a/weed/server/volume_grpc_erasure_coding.go b/weed/server/volume_grpc_erasure_coding.go index 072d2e1cc..129c7dab3 100644 --- a/weed/server/volume_grpc_erasure_coding.go +++ b/weed/server/volume_grpc_erasure_coding.go @@ -63,7 +63,6 @@ func (vs *VolumeServer) VolumeEcShardsGenerate(ctx context.Context, req *volume_ return nil, fmt.Errorf("WriteEcFiles %s: %v", baseFileName, err) } - return &volume_server_pb.VolumeEcShardsGenerateResponse{}, nil } diff --git a/weed/server/volume_grpc_tier_upload.go b/weed/server/volume_grpc_tier_upload.go index d60aa5c3a..c9694df59 100644 --- a/weed/server/volume_grpc_tier_upload.go +++ b/weed/server/volume_grpc_tier_upload.go @@ -81,7 +81,7 @@ func (vs *VolumeServer) VolumeTierMoveDatToRemote(req *volume_server_pb.VolumeTi Offset: 0, FileSize: uint64(size), ModifiedTime: uint64(time.Now().Unix()), - Extension: ".dat", + Extension: ".dat", }) if err := v.SaveVolumeInfo(); err != nil { diff --git a/weed/storage/volume_loading.go b/weed/storage/volume_loading.go index 3ddf54bae..d12b4bfd1 100644 --- a/weed/storage/volume_loading.go +++ b/weed/storage/volume_loading.go @@ -143,4 +143,3 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind return err } -