MCPcopy Create free account
hub / github.com/HiddenCodeDevs/BlumTelegramBot / wait_proxy

Function wait_proxy

bot/utils/checkers.py:23–29  ·  view source on GitHub ↗
(http_client: ClientSession, time_between_checks_sec: int = 5)

Source from the content-addressed store, hash-verified

21
22
23async def wait_proxy(http_client: ClientSession, time_between_checks_sec: int = 5) -> str | None:
24 while True:
25 ip = await check_proxy(http_client)
26 if ip:
27 return ip
28 logger.trace(f"Proxy not available. Sleep {time_between_checks_sec} sec...")
29 await sleep(time_between_checks_sec)

Callers 1

runMethod · 0.90

Calls 1

check_proxyFunction · 0.85

Tested by

no test coverage detected