mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore] some tidy ups (#3677)
* small formatting changes (no logic) * improve code comments * fix import cycle * shutup stinky linter
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
Reference in New Issue
Block a user