增大mineru并发数

This commit is contained in:
xunbu
2025-08-22 10:22:32 +08:00
parent 48b0f30261
commit 37e2866a3f

View File

@@ -36,8 +36,10 @@ timeout = httpx.Timeout(
# else: # else:
# client = httpx.Client(trust_env=False, timeout=timeout, proxy=None, verify=False) # client = httpx.Client(trust_env=False, timeout=timeout, proxy=None, verify=False)
# client_async = httpx.AsyncClient(trust_env=False, timeout=timeout, proxy=None, verify=False) # client_async = httpx.AsyncClient(trust_env=False, timeout=timeout, proxy=None, verify=False)
client = httpx.Client(trust_env=False, timeout=timeout, proxy=None, verify=False)
client_async = httpx.AsyncClient(trust_env=False, timeout=timeout, proxy=None, verify=False) limits = httpx.Limits(max_connections=500, max_keepalive_connections=20)
client = httpx.Client(limits=limits, trust_env=False, timeout=timeout, proxy=None, verify=False)
client_async = httpx.AsyncClient(limits=limits, trust_env=False, timeout=timeout, proxy=None, verify=False)
class ConverterMineru(X2MarkdownConverter): class ConverterMineru(X2MarkdownConverter):