Skip to content

Commit

Permalink
feat: bump read buffer size to 1mb for big batches (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Apr 30, 2024
1 parent aecc8c1 commit 59960bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dank_mids/helpers/_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ async def _get_session_for_thread(thread_ident: int) -> ClientSession:
headers = {'content-type': 'application/json'},
timeout = ClientTimeout(ENVIRONMENT_VARIABLES.AIOHTTP_TIMEOUT), # type: ignore [arg-type, attr-defined]
raise_for_status = True,
read_bufsize=2**20, # 1mb
)

_limited: List[ClientSession] = []

0 comments on commit 59960bd

Please sign in to comment.