Commit 0b8271f2 authored by Jeromy's avatar Jeromy

dont buffer entire input for tar adds

License: MIT
Signed-off-by: default avatarJeromy <why@ipfs.io>
parent 17c629d7
......@@ -6,7 +6,6 @@ import (
"context"
"errors"
"io"
"io/ioutil"
"strings"
importer "github.com/ipfs/go-ipfs/importer"
......@@ -36,13 +35,6 @@ func marshalHeader(h *tar.Header) ([]byte, error) {
}
func ImportTar(r io.Reader, ds dag.DAGService) (*dag.ProtoNode, error) {
rall, err := ioutil.ReadAll(r)
if err != nil {
return nil, err
}
r = bytes.NewReader(rall)
tr := tar.NewReader(r)
root := new(dag.ProtoNode)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment