diff options
Diffstat (limited to 'weed/shell/commands.go')
| -rw-r--r-- | weed/shell/commands.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/commands.go b/weed/shell/commands.go index 985f6423b..ec71edee0 100644 --- a/weed/shell/commands.go +++ b/weed/shell/commands.go @@ -29,7 +29,7 @@ type ShellOptions struct { type CommandEnv struct { env map[string]string MasterClient *wdclient.MasterClient - option ShellOptions + option *ShellOptions locker *exclusive_locks.ExclusiveLocker } @@ -43,7 +43,7 @@ var ( Commands = []command{} ) -func NewCommandEnv(options ShellOptions) *CommandEnv { +func NewCommandEnv(options *ShellOptions) *CommandEnv { ce := &CommandEnv{ env: make(map[string]string), MasterClient: wdclient.NewMasterClient(options.GrpcDialOption, pb.AdminShellClient, "", "", pb.ServerAddresses(*options.Masters).ToAddresses()), |
