You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: reuse the central HTTP client for self-update requests
Instead of the updater constructing its own reqwest client, hand it Git-Tool's
central one. `update::manager` now takes `&Core` and passes
`core.http_client().reqwest_client()` to update-rs, so self-update requests share
Git-Tool's client configuration and connection pool.
To make that possible the central `TrueHttpClient` now owns a single reqwest
client (built once, with a default `Git-Tool/<version>` User-Agent) rather than
creating one per request, and the `HttpClient` trait exposes it via
`reqwest_client()`. Call sites that set a per-request User-Agent (the GitHub
registry/service) still override the default, so their behaviour is unchanged.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments