aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/commands.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-04-29 13:26:02 -0700
committerChris Lu <chris.lu@gmail.com>2020-04-29 13:26:02 -0700
commited3cf811f576e2dd9fd1c1fb0df967d7fb9e6f1c (patch)
treec74581440a5f375bedc0d03a99dc51a536f971ed /weed/shell/commands.go
parent7c10602b49dca54591337597f48da6e228a7068d (diff)
downloadseaweedfs-ed3cf811f576e2dd9fd1c1fb0df967d7fb9e6f1c.tar.xz
seaweedfs-ed3cf811f576e2dd9fd1c1fb0df967d7fb9e6f1c.zip
refactoring
Diffstat (limited to 'weed/shell/commands.go')
-rw-r--r--weed/shell/commands.go2
1 files changed, 2 insertions, 0 deletions
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)