diff options
| author | hilimd <68371223+hilimd@users.noreply.github.com> | 2021-10-11 16:35:47 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-11 16:35:47 +0800 |
| commit | 0548ed3a1b5aa15b035b452519568bc017c065a3 (patch) | |
| tree | 4d77f014c56a1f5e1f18fc78413aa86c492ad41c /weed/command/shell.go | |
| parent | 1de733fda507e1da94b2e4741c74ba7e5e2c5f76 (diff) | |
| parent | 84d2e1bdd099550aaba494c88324c8c0dbc08776 (diff) | |
| download | seaweedfs-0548ed3a1b5aa15b035b452519568bc017c065a3.tar.xz seaweedfs-0548ed3a1b5aa15b035b452519568bc017c065a3.zip | |
Merge pull request #82 from chrislusf/master
sync
Diffstat (limited to 'weed/command/shell.go')
| -rw-r--r-- | weed/command/shell.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/weed/command/shell.go b/weed/command/shell.go index 4a9f4b027..93bb69522 100644 --- a/weed/command/shell.go +++ b/weed/command/shell.go @@ -2,6 +2,7 @@ package command import ( "fmt" + "github.com/chrislusf/seaweedfs/weed/pb" "github.com/chrislusf/seaweedfs/weed/security" "github.com/chrislusf/seaweedfs/weed/shell" @@ -53,13 +54,7 @@ func runShell(command *Command, args []string) bool { fmt.Printf("master: %s filer: %s\n", *shellOptions.Masters, *shellInitialFiler) - var err error - shellOptions.FilerHost, shellOptions.FilerPort, err = util.ParseHostPort(*shellInitialFiler) - shellOptions.FilerAddress = *shellInitialFiler - if err != nil { - fmt.Printf("failed to parse filer %s: %v\n", *shellInitialFiler, err) - return false - } + shellOptions.FilerAddress = pb.ServerAddress(*shellInitialFiler) shellOptions.Directory = "/" shell.RunShell(shellOptions) |
