Skip to content

Commit

Permalink
Merge pull request #3334 from ipfs/fix/tar-add-buffering
Browse files Browse the repository at this point in the history
dont buffer entire input for tar adds
  • Loading branch information
whyrusleeping committed Oct 30, 2016
2 parents 634005a + 0b8271f commit 3ece039
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tar/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"context"
"errors"
"io"
"io/ioutil"
"strings"

importer "github.com/ipfs/go-ipfs/importer"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3ece039

Please sign in to comment.