go fmt
This commit is contained in:
@@ -49,12 +49,10 @@ func (c *commandFsMv) Do(args []string, commandEnv *CommandEnv, writer io.Writer
|
|||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
|
|
||||||
sourceDir, sourceName := filer2.FullPath(sourcePath).DirAndName()
|
sourceDir, sourceName := filer2.FullPath(sourcePath).DirAndName()
|
||||||
|
|
||||||
destinationDir, destinationName := filer2.FullPath(destinationPath).DirAndName()
|
destinationDir, destinationName := filer2.FullPath(destinationPath).DirAndName()
|
||||||
|
|
||||||
|
|
||||||
return commandEnv.withFilerClient(ctx, filerServer, filerPort, func(client filer_pb.SeaweedFilerClient) error {
|
return commandEnv.withFilerClient(ctx, filerServer, filerPort, func(client filer_pb.SeaweedFilerClient) error {
|
||||||
|
|
||||||
// collect destination entry info
|
// collect destination entry info
|
||||||
@@ -77,7 +75,6 @@ func (c *commandFsMv) Do(args []string, commandEnv *CommandEnv, writer io.Writer
|
|||||||
targetName = destinationName
|
targetName = destinationName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
request := &filer_pb.AtomicRenameEntryRequest{
|
request := &filer_pb.AtomicRenameEntryRequest{
|
||||||
OldDirectory: sourceDir,
|
OldDirectory: sourceDir,
|
||||||
OldName: sourceName,
|
OldName: sourceName,
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ type Topology struct {
|
|||||||
Configuration *Configuration
|
Configuration *Configuration
|
||||||
|
|
||||||
RaftServer raft.Server
|
RaftServer raft.Server
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewTopology(id string, seq sequence.Sequencer, volumeSizeLimit uint64, pulse int) *Topology {
|
func NewTopology(id string, seq sequence.Sequencer, volumeSizeLimit uint64, pulse int) *Topology {
|
||||||
|
|||||||
Reference in New Issue
Block a user