Skip to content

perf: reuse reqwest clients - #127

Open
bxn-dev wants to merge 1 commit into
Kenya-DK:developmentfrom
bxn-dev:fix/reuse-reqwest-client
Open

perf: reuse reqwest clients#127
bxn-dev wants to merge 1 commit into
Kenya-DK:developmentfrom
bxn-dev:fix/reuse-reqwest-client

Conversation

@bxn-dev

@bxn-dev bxn-dev commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #126

changes

  • qf_api::Client now creates a reqwest::Client once during initialization and reuses it for all QF API requests.
  • Dynamic headers, auth tokens, additional request headers, rate limiting, and error handling remain unchanged for each request.
  • Discord and webhook notifications use a shared, lazily initialized reqwest::Client.

As a result, TCP/TLS connections remain in the pool and are reused instead of being reestablished for each request. Additional manual testing of QF requests, Discord, and webhooks is appreciated. I visited all the pages once and performed actions that triggered multiple requests. Nothing crashed on me, everything worked as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant