diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-12-25 09:56:42 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-12-25 09:56:42 -0800 |
| commit | eecad6062a614fbd1cd90f9dbf023479a30b675c (patch) | |
| tree | c4bcb1f09cef2cf9bc21ddbd63f4df274de2c192 /weed/shell/command_volume_tier_download.go | |
| parent | d960b3474af6956ffcf59e782789001169531db8 (diff) | |
| download | seaweedfs-eecad6062a614fbd1cd90f9dbf023479a30b675c.tar.xz seaweedfs-eecad6062a614fbd1cd90f9dbf023479a30b675c.zip | |
go fmt
Diffstat (limited to 'weed/shell/command_volume_tier_download.go')
| -rw-r--r-- | weed/shell/command_volume_tier_download.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/shell/command_volume_tier_download.go b/weed/shell/command_volume_tier_download.go index 3921f1449..88e2e8b92 100644 --- a/weed/shell/command_volume_tier_download.go +++ b/weed/shell/command_volume_tier_download.go @@ -109,8 +109,8 @@ func doVolumeTierDownload(ctx context.Context, commandEnv *CommandEnv, writer io // copy the .dat file from remote tier to local err = downloadDatFromRemoteTier(ctx, commandEnv.option.GrpcDialOption, writer, needle.VolumeId(vid), collection, loc.Url) if err != nil { - return fmt.Errorf("download dat file for volume %d to %s: %v", vid, loc.Url, err) - } + return fmt.Errorf("download dat file for volume %d to %s: %v", vid, loc.Url, err) + } } return nil @@ -120,8 +120,8 @@ func downloadDatFromRemoteTier(ctx context.Context, grpcDialOption grpc.DialOpti err := operation.WithVolumeServerClient(targetVolumeServer, grpcDialOption, func(volumeServerClient volume_server_pb.VolumeServerClient) error { stream, downloadErr := volumeServerClient.VolumeTierMoveDatFromRemote(ctx, &volume_server_pb.VolumeTierMoveDatFromRemoteRequest{ - VolumeId: uint32(volumeId), - Collection: collection, + VolumeId: uint32(volumeId), + Collection: collection, }) var lastProcessed int64 |
