aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/commands.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-04-12 20:48:21 -0700
committerChris Lu <chris.lu@gmail.com>2020-04-12 20:48:21 -0700
commit8e23dc078b6790ace902c09ed71963c9ce49acdb (patch)
treefe7a659657a9a21eeba9dcb862182b05b16154c6 /weed/shell/commands.go
parentb062393f3f90388ac98706ed22bd20907015b265 (diff)
downloadseaweedfs-8e23dc078b6790ace902c09ed71963c9ce49acdb.tar.xz
seaweedfs-8e23dc078b6790ace902c09ed71963c9ce49acdb.zip
refactoring
Diffstat (limited to 'weed/shell/commands.go')
-rw-r--r--weed/shell/commands.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/commands.go b/weed/shell/commands.go
index 41f197328..cbae6c03e 100644
--- a/weed/shell/commands.go
+++ b/weed/shell/commands.go
@@ -43,7 +43,7 @@ var (
func NewCommandEnv(options ShellOptions) *CommandEnv {
return &CommandEnv{
env: make(map[string]string),
- MasterClient: wdclient.NewMasterClient(options.GrpcDialOption, "shell", 0, strings.Split(*options.Masters, ",")),
+ MasterClient: wdclient.NewMasterClient(options.GrpcDialOption, pb.AdminShellClient, 0, strings.Split(*options.Masters, ",")),
option: options,
}
}