Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL client should use persistent session and connection pool #337

Open
shiftinv opened this issue Sep 25, 2024 · 0 comments
Open

GraphQL client should use persistent session and connection pool #337

shiftinv opened this issue Sep 25, 2024 · 0 comments

Comments

@shiftinv
Copy link
Contributor

Currently, every GraphQL request in github_info.py uses gql.execute_async, which creates a new aiohttp session (and connector) every time.
To avoid this and to support sharing the same TCPConnector as bot.http_session for connection pooling, the gql client should use a persistent session.

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

No branches or pull requests

1 participant