diff options
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/download.go | 4 | ||||
| -rw-r--r-- | weed/command/filer_replication.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/download.go b/weed/command/download.go index 39ed2b38e..b3e33defd 100644 --- a/weed/command/download.go +++ b/weed/command/download.go @@ -55,7 +55,7 @@ func downloadToFile(server, fileId, saveDir string) error { if lookupError != nil { return lookupError } - filename, rc, err := util.DownloadUrl(fileUrl) + filename, _, rc, err := util.DownloadFile(fileUrl) if err != nil { return err } @@ -108,7 +108,7 @@ func fetchContent(server string, fileId string) (filename string, content []byte return "", nil, lookupError } var rc io.ReadCloser - if filename, rc, e = util.DownloadUrl(fileUrl); e != nil { + if filename, _, rc, e = util.DownloadFile(fileUrl); e != nil { return "", nil, e } content, e = ioutil.ReadAll(rc) diff --git a/weed/command/filer_replication.go b/weed/command/filer_replication.go index 967577c72..c5a8b3c84 100644 --- a/weed/command/filer_replication.go +++ b/weed/command/filer_replication.go @@ -2,9 +2,9 @@ package command import ( "github.com/chrislusf/seaweedfs/weed/glog" + "github.com/chrislusf/seaweedfs/weed/replication" "github.com/chrislusf/seaweedfs/weed/server" "github.com/spf13/viper" - "github.com/chrislusf/seaweedfs/weed/replication" ) func init() { |
