weed download command use stream download the large file.

This commit is contained in:
tnextday
2015-12-15 00:14:02 +08:00
parent aa44028b46
commit b177afc326
3 changed files with 66 additions and 43 deletions

View File

@@ -83,10 +83,6 @@ func (cm *ChunkManifest) DeleteChunks(master string) error {
return nil
}
//func (cm *ChunkManifest) StoredHelper() error {
// return nil
//}
func readChunkNeedle(fileUrl string, w io.Writer, offset int64) (written int64, e error) {
req, err := http.NewRequest("GET", fileUrl, nil)
if err != nil {