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-unixfs
Commits
939195c2
Commit
939195c2
authored
Feb 29, 2016
by
Jeromy Johnson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2384 from ipfs/feat/dag-refactor
refactor merkledag fetching methods
parents
aee8b331
90961cf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
archive/tar/writer.go
archive/tar/writer.go
+1
-1
io/dagreader.go
io/dagreader.go
+1
-1
No files found.
archive/tar/writer.go
View file @
939195c2
...
...
@@ -39,7 +39,7 @@ func (w *Writer) writeDir(nd *mdag.Node, fpath string) error {
return
err
}
for
i
,
ng
:=
range
w
.
D
ag
.
GetDAG
(
w
.
ctx
,
nd
)
{
for
i
,
ng
:=
range
md
ag
.
GetDAG
(
w
.
ctx
,
w
.
Dag
,
nd
)
{
child
,
err
:=
ng
.
Get
(
w
.
ctx
)
if
err
!=
nil
{
return
err
...
...
io/dagreader.go
View file @
939195c2
...
...
@@ -90,7 +90,7 @@ func NewDagReader(ctx context.Context, n *mdag.Node, serv mdag.DAGService) (*Dag
func
NewDataFileReader
(
ctx
context
.
Context
,
n
*
mdag
.
Node
,
pb
*
ftpb
.
Data
,
serv
mdag
.
DAGService
)
*
DagReader
{
fctx
,
cancel
:=
context
.
WithCancel
(
ctx
)
promises
:=
serv
.
GetDAG
(
fctx
,
n
)
promises
:=
mdag
.
GetDAG
(
fctx
,
serv
,
n
)
return
&
DagReader
{
node
:
n
,
serv
:
serv
,
...
...
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