Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
0b8271f2
Commit
0b8271f2
authored
Oct 28, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dont buffer entire input for tar adds
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
17c629d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
tar/format.go
tar/format.go
+0
-8
No files found.
tar/format.go
View file @
0b8271f2
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment