Skip to content

Commit 0179bf0

Browse files
committed
Changeset
1 parent 4683dba commit 0179bf0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
### 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

Comments
 (0)