fix(stealth): bump Semaphore 6->8 for higher concurrency in gather
Per-object 7 endpoints через asyncio.gather упираются в semaphore limit. 6 -> 8 — ещё +33% concurrency для batch fetch'а.
This commit is contained in:
parent
0f289c05b1
commit
2aa33e0eb8
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ class BrowserSession:
|
||||||
self._browser: Browser | None = None
|
self._browser: Browser | None = None
|
||||||
self._context: BrowserContext | None = None
|
self._context: BrowserContext | None = None
|
||||||
self._page: Page | None = None
|
self._page: Page | None = None
|
||||||
self._sem = asyncio.Semaphore(6)
|
self._sem = asyncio.Semaphore(8)
|
||||||
self._request_count = 0
|
self._request_count = 0
|
||||||
|
|
||||||
async def __aenter__(self) -> BrowserSession:
|
async def __aenter__(self) -> BrowserSession:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue