فهرست منبع

More concurrency

ZiB 4 ماه پیش
والد
کامیت
2de7f57a08
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(3)
+    _sem = asyncio.Semaphore(15)
 
     async def fetch_details(c: str) -> tuple[str, str | None, str | None, str | None, str | None, str | None]:
       async with _sem: