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
### chore: Only initialize a single HTTP client for graphql requests - @swcollard PR #412
2
+
3
+
Currently the MCP Server spins up a new HTTP client every time it wants to make a request to the downstream graphql endpoint. This change creates a static reqwest client that gets initialized using LazyLock and reused on each graphql request.
4
+
5
+
This change is based on the suggestion from the reqwest [documentation](https://docs.rs/reqwest/latest/reqwest/struct.Client.html)
6
+
> "The Client holds a connection pool internally, so it is advised that you create one and reuse it."
0 commit comments