monty-python
monty-python copied to clipboard
GraphQL client should use persistent session and connection pool
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.