small formatting changes (no logic)

This commit is contained in:
kim 2025-01-24 13:22:00 +00:00
commit 0fab27b0ea
4 changed files with 19 additions and 35 deletions

View file

@ -178,6 +178,9 @@ func New(cfg Config) *Client {
return &c
}
// RoundTrip allows httpclient.Client{} to be used as an http.Transport{}, just calling Client{}.Do().
func (c *Client) RoundTrip(r *http.Request) (rsp *http.Response, err error) { return c.Do(r) }
// Do will essentially perform http.Client{}.Do() with retry-backoff functionality.
func (c *Client) Do(r *http.Request) (rsp *http.Response, err error) {