mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-06-08 05:14:35 +00:00
version fix
This commit is contained in:
@@ -360,7 +360,7 @@ The application uses a web-based interface accessible via browser:
|
||||
|
||||
**Dockerfile:**
|
||||
|
||||
- Based on `python:3.11-slim`
|
||||
- Based on `python:3`
|
||||
- Installs dependencies from `pyproject.toml`
|
||||
- Exposes port 8080
|
||||
- Health check on `/api/status`
|
||||
|
||||
@@ -22,7 +22,6 @@ logger = logging.getLogger("TwitchDrops")
|
||||
|
||||
async def first_to_complete(coros: abc.Iterable[abc.Coroutine[Any, Any, _T]]) -> _T:
|
||||
"""Wait for the first coroutine to complete, canceling the rest."""
|
||||
# In Python 3.11, we need to explicitly wrap awaitables
|
||||
tasks: list[asyncio.Task[_T]] = [asyncio.ensure_future(coro) for coro in coros]
|
||||
done: set[asyncio.Task[Any]]
|
||||
pending: set[asyncio.Task[Any]]
|
||||
|
||||
Reference in New Issue
Block a user