aboutsummaryrefslogtreecommitdiff
path: root/weed/shell
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell')
-rw-r--r--weed/shell/command_fs_lock_unlock.go1
-rw-r--r--weed/shell/command_fs_meta_save.go2
-rw-r--r--weed/shell/commands.go2
3 files changed, 3 insertions, 2 deletions
diff --git a/weed/shell/command_fs_lock_unlock.go b/weed/shell/command_fs_lock_unlock.go
index a173d6c85..8a6e8f71b 100644
--- a/weed/shell/command_fs_lock_unlock.go
+++ b/weed/shell/command_fs_lock_unlock.go
@@ -52,4 +52,3 @@ func (c *commandUnlock) Do(args []string, commandEnv *CommandEnv, writer io.Writ
return nil
}
-
diff --git a/weed/shell/command_fs_meta_save.go b/weed/shell/command_fs_meta_save.go
index a5efb69ba..ed19e3d01 100644
--- a/weed/shell/command_fs_meta_save.go
+++ b/weed/shell/command_fs_meta_save.go
@@ -140,4 +140,4 @@ func doTraverseBfsAndSaving(filerClient filer_pb.FilerClient, writer io.Writer,
fmt.Fprintf(writer, "total %d directories, %d files\n", dirCount, fileCount)
}
return err
-} \ No newline at end of file
+}
diff --git a/weed/shell/commands.go b/weed/shell/commands.go
index a43196b62..b7ca5d268 100644
--- a/weed/shell/commands.go
+++ b/weed/shell/commands.go
@@ -92,6 +92,8 @@ func (ce *CommandEnv) checkDirectory(path string) error {
}
+var _ = filer_pb.FilerClient(&CommandEnv{})
+
func (ce *CommandEnv) WithFilerClient(fn func(filer_pb.SeaweedFilerClient) error) error {
filerGrpcAddress := fmt.Sprintf("%s:%d", ce.option.FilerHost, ce.option.FilerPort+10000)