mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-20 00:11:34 +00:00
Two follow-ups that were still costing ~1s per credential probe: - Bumped the daytona-sdk-rust pin to fa4870f, which deletes a dead underscore-prefixed _http_client field on Client. The field was unused but new_with_config built a fresh reqwest::Client for it on every call, paying the macOS proxy-discovery tax even with our injection seam in place. - build_api_keys_configuration was using Configuration::new() and then overwriting cfg.client with our injected client. The Default impl generated by openapi-generator builds a reqwest::Client::new() for the client field eagerly, which we then threw away — another ~470ms hit per probe. Construct the Configuration as a struct literal so the injected client is the only one we ever build. Drops the three credential-probe tests from ~700ms to ~10ms. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||