myhttp
myhttp copied to clipboard
Use http.Client{Timeout: timeout}
Hello,
I thing the whole code around Transport timeouts may be replaced by a simple http.Client{Timeout: timeout} statement.
Pierre-Yves
Hi, thx, With your recommendation, tests pass, however, I don't remember why I did it that way but when I was just giving it a timeout wasn't working on the production. Maybe, I should add a test to validate that production-level behavior.