mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 22:26:15 -06:00
small formatting changes (no logic)
This commit is contained in:
parent
7b7fc528f1
commit
0fab27b0ea
4 changed files with 19 additions and 35 deletions
|
|
@ -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) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue