aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/commands.go
diff options
context:
space:
mode:
authorguosj <515878133@qq.com>2022-04-19 09:26:06 +0800
committerguosj <515878133@qq.com>2022-04-19 09:26:06 +0800
commit94c702402e879843792acc4be2cf01198268f250 (patch)
tree593eb933dffc877010c761b2c55ec6c73875e9a3 /weed/shell/commands.go
parent5c9a3bb8cf68ed99acb53dd548c92b54744d7fd7 (diff)
parent82ee31965dd7a1ad2d348c7e9dadb254744bf9b0 (diff)
downloadseaweedfs-94c702402e879843792acc4be2cf01198268f250.tar.xz
seaweedfs-94c702402e879843792acc4be2cf01198268f250.zip
Merge branch 'chrislusf-master'
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 ec71edee0..3ff49f1d2 100644
--- a/weed/shell/commands.go
+++ b/weed/shell/commands.go
@@ -46,7 +46,7 @@ var (
func NewCommandEnv(options *ShellOptions) *CommandEnv {
ce := &CommandEnv{
env: make(map[string]string),
- MasterClient: wdclient.NewMasterClient(options.GrpcDialOption, pb.AdminShellClient, "", "", pb.ServerAddresses(*options.Masters).ToAddresses()),
+ MasterClient: wdclient.NewMasterClient(options.GrpcDialOption, pb.AdminShellClient, "", "", pb.ServerAddresses(*options.Masters).ToAddressMap()),
option: options,
}
ce.locker = exclusive_locks.NewExclusiveLocker(ce.MasterClient, "admin")