MCPcopy Create free account
hub / github.com/compozy/agh / Close

Method Close

internal/registry/github/client.go:280–285  ·  view source on GitHub ↗

Close releases any idle HTTP connections held by the client.

()

Source from the content-addressed store, hash-verified

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

Calls 2

closeIdleConnectionsFunction · 0.70
DoMethod · 0.65