瀏覽代碼

Balanced concurrency

ZiB 4 月之前
父節點
當前提交
721e46d01b
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      room_cal/service_api/_airbnb.py

+ 1 - 1
room_cal/service_api/_airbnb.py

@@ -324,7 +324,7 @@ class _AirbnbClient:
       dt = datetime.fromisoformat(ts.replace('Z', '+00:00'))
       return dt.astimezone(ZoneInfo(self._tz)).date().isoformat()
 
-    _sem = asyncio.Semaphore(15)
+    _sem = asyncio.Semaphore(10)
 
     async def fetch_details(c: str) -> tuple[str, str | None, str | None, str | None, str | None, str | None]:
       async with _sem: