Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
removed timeouts for all resolver functions except for ResolveToLastNode
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Sep 20, 2021
1 parent d0512ce commit c2dfede
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ func (r *Resolver) ResolvePath(ctx context.Context, fpath path.Path) (ipld.Node,
// create a selector to traverse all path segments but only match the last
pathSelector := pathLeafSelector(p)

// create a new cancellable session
ctx, cancel := context.WithTimeout(ctx, time.Minute)
defer cancel()

nodes, c, _, err := r.resolveNodes(ctx, c, pathSelector)
if err != nil {
return nil, nil, err
Expand Down Expand Up @@ -180,10 +176,6 @@ func (r *Resolver) ResolvePathComponents(ctx context.Context, fpath path.Path) (
// create a selector to traverse and match all path segments
pathSelector := pathAllSelector(p)

// create a new cancellable session
ctx, cancel := context.WithTimeout(ctx, time.Minute)
defer cancel()

nodes, _, _, err := r.resolveNodes(ctx, c, pathSelector)
if err != nil {
evt.Append(logging.LoggableMap{"error": err.Error()})
Expand All @@ -207,10 +199,6 @@ func (r *Resolver) ResolveLinks(ctx context.Context, ndd ipld.Node, names []stri
// create a selector to traverse and match all path segments
pathSelector := pathAllSelector(names)

// create a new cancellable session
ctx, cancel := context.WithTimeout(ctx, time.Minute)
defer cancel()

session := r.FetcherFactory.NewSession(ctx)

// traverse selector
Expand Down

0 comments on commit c2dfede

Please sign in to comment.