Close releases any idle HTTP connections held by the client.
()
| 278 | |
| 279 | // Close releases any idle HTTP connections held by the client. |
| 280 | func (c *Client) Close() error { |
| 281 | c.closeOnce.Do(func() { |
| 282 | closeIdleConnections(c.httpClient) |
| 283 | }) |
| 284 | return nil |
| 285 | } |
| 286 | |
| 287 | func (c *Client) fetchLatestRelease(ctx context.Context, repo repoSlug) (*release, error) { |
| 288 | endpoint := c.baseURL + "/repos/" + url.PathEscape( |