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
dc215357
Commit
dc215357
authored
Aug 23, 2015
by
rht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ctx timeout in unixfsNode GetChild
License: MIT Signed-off-by:
rht
<
rhtbot@gmail.com
>
parent
30e03b2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
importer/helpers/helpers.go
importer/helpers/helpers.go
+0
-4
No files found.
importer/helpers/helpers.go
View file @
dc215357
...
...
@@ -2,7 +2,6 @@ package helpers
import
(
"fmt"
"time"
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
key
"github.com/ipfs/go-ipfs/blocks/key"
...
...
@@ -78,9 +77,6 @@ func (n *UnixfsNode) NumChildren() int {
}
func
(
n
*
UnixfsNode
)
GetChild
(
ctx
context
.
Context
,
i
int
,
ds
dag
.
DAGService
)
(
*
UnixfsNode
,
error
)
{
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
time
.
Minute
)
defer
cancel
()
nd
,
err
:=
n
.
node
.
Links
[
i
]
.
GetNode
(
ctx
,
ds
)
if
err
!=
nil
{
return
nil
,
err
...
...
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