master: remove hard coded filer settings in master.toml

fix https://github.com/chrislusf/seaweedfs/issues/2529
This commit is contained in:
chrislu
2022-01-12 01:11:25 -08:00
parent cd1ad88f30
commit 826a7b307e
4 changed files with 28 additions and 17 deletions

View File

@@ -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()),