aboutsummaryrefslogtreecommitdiff
path: root/weed/shell
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-01-28 14:36:29 -0800
committerChris Lu <chris.lu@gmail.com>2021-01-28 14:36:29 -0800
commit990fa69bfeac65a72bec1539993e32633858c8f5 (patch)
tree00b90626c590534b64a581da8807117459b91ecb /weed/shell
parent9292796ec2d8f796f3e9162fcd1362cba801e7e4 (diff)
downloadseaweedfs-990fa69bfeac65a72bec1539993e32633858c8f5.tar.xz
seaweedfs-990fa69bfeac65a72bec1539993e32633858c8f5.zip
add back AdjustedUrl() related code
Diffstat (limited to 'weed/shell')
-rw-r--r--weed/shell/commands.go4
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