Skip to content

Conversation

@tchakabam
Copy link
Contributor

@streadway Otherwise the wrapping http.Client can't make use of its timeout feature

see http://golang.org/src/pkg/net/http/client.go line 300

@tchakabam tchakabam changed the title Add cancel request to transport Add cancel request to retry transport Sep 9, 2014
retry/delay.go Outdated
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A nit - is that 'fib' now becomes a bound variable, so I'm pretty sure a unique 'fib' func will get compiled for every call of Fibonacci the compiler should discover that fib contains no free variables and reuse an implementation, but I'd err on the side of being nice to the compiler and leave fib a package function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants