mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
go fmt
This commit is contained in:
parent
46294b42e6
commit
586798ecc0
|
@ -18,7 +18,7 @@ func TestJsonpMarshalUnmarshal(t *testing.T) {
|
||||||
|
|
||||||
m := jsonpb.Marshaler{
|
m := jsonpb.Marshaler{
|
||||||
EmitDefaults: true,
|
EmitDefaults: true,
|
||||||
Indent: " ",
|
Indent: " ",
|
||||||
}
|
}
|
||||||
|
|
||||||
if text, err := m.MarshalToString(tv); err != nil {
|
if text, err := m.MarshalToString(tv); err != nil {
|
||||||
|
@ -40,5 +40,4 @@ func TestJsonpMarshalUnmarshal(t *testing.T) {
|
||||||
|
|
||||||
fmt.Printf("unmarshalled: %+v\n", tv1)
|
fmt.Printf("unmarshalled: %+v\n", tv1)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,4 +35,4 @@ func uploadFileToRemote(ctx context.Context, req *volume_server_pb.VolumeTierCop
|
||||||
println("copying dat file of", f.Name(), "to remote")
|
println("copying dat file of", f.Name(), "to remote")
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,11 +82,11 @@ func doVolumeTier(ctx context.Context, commandEnv *CommandEnv, collection string
|
||||||
|
|
||||||
// mark the volume as readonly
|
// mark the volume as readonly
|
||||||
/*
|
/*
|
||||||
err = markVolumeReadonly(ctx, commandEnv.option.GrpcDialOption, needle.VolumeId(vid), locations)
|
err = markVolumeReadonly(ctx, commandEnv.option.GrpcDialOption, needle.VolumeId(vid), locations)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("mark volume %d as readonly on %s: %v", vid, locations[0].Url, err)
|
return fmt.Errorf("mark volume %d as readonly on %s: %v", vid, locations[0].Url, err)
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// copy the .dat file to remote tier
|
// copy the .dat file to remote tier
|
||||||
err = copyDatToRemoteTier(ctx, commandEnv.option.GrpcDialOption, needle.VolumeId(vid), collection, locations[0].Url, dest)
|
err = copyDatToRemoteTier(ctx, commandEnv.option.GrpcDialOption, needle.VolumeId(vid), collection, locations[0].Url, dest)
|
||||||
|
|
Loading…
Reference in a new issue