From dc2153574cc69dbf519f718369eba3a609799c2f Mon Sep 17 00:00:00 2001 From: rht Date: Sun, 23 Aug 2015 19:57:44 +0700 Subject: [PATCH] Remove ctx timeout in unixfsNode GetChild License: MIT Signed-off-by: rht --- importer/helpers/helpers.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/importer/helpers/helpers.go b/importer/helpers/helpers.go index ac7d3cd8a..cb8422126 100644 --- a/importer/helpers/helpers.go +++ b/importer/helpers/helpers.go @@ -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