diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-01-28 14:36:29 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-01-28 14:36:29 -0800 |
| commit | 990fa69bfeac65a72bec1539993e32633858c8f5 (patch) | |
| tree | 00b90626c590534b64a581da8807117459b91ecb /weed/shell/commands.go | |
| parent | 9292796ec2d8f796f3e9162fcd1362cba801e7e4 (diff) | |
| download | seaweedfs-990fa69bfeac65a72bec1539993e32633858c8f5.tar.xz seaweedfs-990fa69bfeac65a72bec1539993e32633858c8f5.zip | |
add back AdjustedUrl() related code
Diffstat (limited to 'weed/shell/commands.go')
| -rw-r--r-- | weed/shell/commands.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/shell/commands.go b/weed/shell/commands.go index 6e1348ca5..0e285214b 100644 --- a/weed/shell/commands.go +++ b/weed/shell/commands.go @@ -102,6 +102,10 @@ func (ce *CommandEnv) WithFilerClient(fn func(filer_pb.SeaweedFilerClient) error } +func (ce *CommandEnv) AdjustedUrl(location *filer_pb.Location) string { + return location.Url +} + func parseFilerUrl(entryPath string) (filerServer string, filerPort int64, path string, err error) { if strings.HasPrefix(entryPath, "http") { var u *url.URL |
