@cryptotaxi247 / kubo / commits / dc2153574

Remove ctx timeout in unixfsNode GetChild

License: MIT Signed-off-by: rht <rhtbot@gmail.com>

rht committed Aug 23, 2015 at 19:57 UTC dc2153574cc69dbf519f718369eba3a609799c2f
1 file changed -4
importer/helpers/helpers.go
-4
@@ -2,7 +2,6 @@ package helpers
2
3 import (
4 "fmt"
5 - "time"
5
6 "github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
7 key "github.com/ipfs/go-ipfs/blocks/key"
@@ -78,9 +77,6 @@ func (n *UnixfsNode) NumChildren() int {
77 }
78
79 func (n *UnixfsNode) GetChild(ctx context.Context, i int, ds dag.DAGService) (*UnixfsNode, error) {
81 - ctx, cancel := context.WithTimeout(ctx, time.Minute)
82 - defer cancel()
83 -
80 nd, err := n.node.Links[i].GetNode(ctx, ds)
81 if err != nil {
82 return nil, err