Skip to content

Commit

Permalink
remote: patch default timeout for List (#321)
Browse files Browse the repository at this point in the history
It looks a test value was shipped breaking a lot of the usage of the library.
  • Loading branch information
nchagrass committed May 24, 2021
1 parent 720c192 commit db4233e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remote.go
Expand Up @@ -1085,7 +1085,7 @@ func (r *Remote) ListContext(ctx context.Context, o *ListOptions) (rfs []*plumbi
}

func (r *Remote) List(o *ListOptions) (rfs []*plumbing.Reference, err error) {
ctx, cancel := context.WithTimeout(context.Background(), 600*time.Millisecond)
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
return r.ListContext(ctx, o)
}
Expand Down

0 comments on commit db4233e

Please sign in to comment.