diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-07-21 20:42:14 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-07-21 20:42:14 -0700 |
| commit | 922c614bdea87028d0e5a690b3e3b7f2d4675f11 (patch) | |
| tree | 11aa01166d97699aaf93958d08858ecc8f0ff5ca /weed/command/mount_std.go | |
| parent | 16c66e097b0777a8a1944b8f4463b5990fe4421e (diff) | |
| download | seaweedfs-922c614bdea87028d0e5a690b3e3b7f2d4675f11.tar.xz seaweedfs-922c614bdea87028d0e5a690b3e3b7f2d4675f11.zip | |
fix compilation problem
Diffstat (limited to 'weed/command/mount_std.go')
| -rw-r--r-- | weed/command/mount_std.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index 242ed4dc8..4fb6a4465 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -11,8 +11,6 @@ import ( "github.com/chrislusf/seaweedfs/weed/filesys" "github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/util" - "strconv" - "strings" ) func runMount(cmd *Command, args []string) bool { @@ -74,22 +72,3 @@ func runMount(cmd *Command, args []string) bool { return true } - -func parseFilerGrpcAddress(filer string, optionalGrpcPort int) (filerGrpcAddress string, err error) { - hostnameAndPort := strings.Split(filer, ":") - if len(hostnameAndPort) != 2 { - return "", fmt.Errorf("The filer should have hostname:port format: %v", hostnameAndPort) - } - - filerPort, parseErr := strconv.ParseUint(hostnameAndPort[1], 10, 64) - if parseErr != nil { - return "", fmt.Errorf("The filer filer port parse error: %v", parseErr) - } - - filerGrpcPort := int(filerPort) + 10000 - if optionalGrpcPort != 0 { - filerGrpcPort = optionalGrpcPort - } - - return fmt.Sprintf("%s:%d", hostnameAndPort[0], filerGrpcPort), nil -} |
