Skip to content

Commit

Permalink
fix(gosimple): use time.Since
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneM committed Nov 16, 2021
1 parent 04a824c commit 1515f00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## To Be Released

* refactor: replace use of the deprecated ioutil package [#238](https://github.com/Scalingo/go-scalingo/pull/238)

## 4.15.1

* chore: generate missing mocks from v4.15.0
Expand Down
2 changes: 1 addition & 1 deletion http/api_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (c *client) Do(req *APIRequest) (*http.Response, error) {
return nil, fmt.Errorf("Fail to query %s: %v", req.HTTPRequest.Host, err)
}
debug.Printf(pkgio.Indent("Request ID: %v", 6), res.Header.Get("X-Request-Id"))
debug.Printf(pkgio.Indent("Duration: %v", 6), time.Now().Sub(now))
debug.Printf(pkgio.Indent("Duration: %v", 6), time.Since(now))

if req.Expected.Contains(res.StatusCode) {
return res, nil
Expand Down

0 comments on commit 1515f00

Please sign in to comment.