Skip to content

Conversation

@lrita
Copy link
Contributor

@lrita lrita commented Mar 10, 2017

fix(#59) by using http.Client.Timeout instead of a special http.Transport.

@codecov-io
Copy link

codecov-io commented Mar 10, 2017

Codecov Report

Merging #60 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #60      +/-   ##
==========================================
- Coverage   96.48%   96.48%   -0.01%     
==========================================
  Files           9       11       +2     
  Lines         883      882       -1     
==========================================
- Hits          852      851       -1     
  Misses         17       17              
  Partials       14       14
Impacted Files Coverage Δ
client.go 95.6% <ø> (-0.16%)
client12.go 100% <100%> (ø)
client13.go 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c53a09a...1f920fc. Read the comment docs.

@jeevatkm jeevatkm self-requested a review March 10, 2017 18:00
@jeevatkm jeevatkm changed the title fix: make SetTimeout to normal behavior Use HTTP Client SetTimeout instead of custom timeout Mar 10, 2017
@jeevatkm jeevatkm self-assigned this Mar 10, 2017
@jeevatkm jeevatkm added this to the v0.11 Milestone milestone Mar 10, 2017
Copy link
Member

@jeevatkm jeevatkm left a comment

Choose a reason for hiding this comment

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

I have a look on your changes, I appreciate your time and contribution.

Please have a look on my review comment.

client.go Outdated
// SetTimeout method sets timeout for request raised from client
// resty.SetTimeout(time.Duration(1 * time.Minute))
//
func (c *Client) SetTimeout(timeout time.Duration) *Client {
Copy link
Member

Choose a reason for hiding this comment

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

Currently resty support Go1.2 and above. HTTP Client SetTimeout was introduced in Go1.3. You see travis build is failed for Go1.2

Can you please handle these support with build constraints?

@jeevatkm jeevatkm merged commit 18ef206 into go-resty:master Mar 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants