Skip to content

Commit d14b299

Browse files
committed
fix: use WARM_POOL_COUNT for connection count in _do_warm method
1 parent f594f3b commit d14b299

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/domain_fronter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,8 +914,8 @@ async def _keepalive_loop(self):
914914
log.debug("Keepalive failed: %s", e)
915915

916916
async def _do_warm(self):
917-
"""Open WARM_POOL_COUNTnnections in parallel — failures are fine."""
918-
count = 30
917+
"""Open WARM_POOL_COUNT connections in parallel — failures are fine."""
918+
count = WARM_POOL_COUNT
919919
coros = [self._add_conn_to_pool() for _ in range(count)]
920920
results = await asyncio.gather(*coros, return_exceptions=True)
921921
opened = sum(1 for r in results if not isinstance(r, Exception))

0 commit comments

Comments
 (0)