mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Fix
This commit is contained in:
@@ -21,6 +21,7 @@ dependencies = [
|
|||||||
"httpx-oauth>=0.16.1,<0.17",
|
"httpx-oauth>=0.16.1,<0.17",
|
||||||
"uvicorn[standard]>=0.34.0,<0.35",
|
"uvicorn[standard]>=0.34.0,<0.35",
|
||||||
"temporalio>=1.10.0",
|
"temporalio>=1.10.0",
|
||||||
|
"uvloop>=0.21.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.hatch.build.targets.sdist]
|
[tool.hatch.build.targets.sdist]
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
from asyncio import run
|
from asyncio import run, set_event_loop_policy
|
||||||
|
|
||||||
|
import uvloop
|
||||||
|
|
||||||
from core.temporal import get_client
|
from core.temporal import get_client
|
||||||
|
|
||||||
@@ -53,4 +55,7 @@ async def main():
|
|||||||
await worker.run()
|
await worker.run()
|
||||||
|
|
||||||
|
|
||||||
|
set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||||
|
|
||||||
|
|
||||||
run(main())
|
run(main())
|
||||||
|
|||||||
2
uv.lock
generated
2
uv.lock
generated
@@ -254,6 +254,7 @@ dependencies = [
|
|||||||
{ name = "temporalio" },
|
{ name = "temporalio" },
|
||||||
{ name = "twitchapi" },
|
{ name = "twitchapi" },
|
||||||
{ name = "uvicorn", extra = ["standard"] },
|
{ name = "uvicorn", extra = ["standard"] },
|
||||||
|
{ name = "uvloop" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.metadata]
|
[package.metadata]
|
||||||
@@ -274,6 +275,7 @@ requires-dist = [
|
|||||||
{ name = "temporalio", specifier = ">=1.10.0" },
|
{ name = "temporalio", specifier = ">=1.10.0" },
|
||||||
{ name = "twitchapi", specifier = ">=4.4.0,<5" },
|
{ name = "twitchapi", specifier = ">=4.4.0,<5" },
|
||||||
{ name = "uvicorn", extras = ["standard"], specifier = ">=0.34.0,<0.35" },
|
{ name = "uvicorn", extras = ["standard"], specifier = ">=0.34.0,<0.35" },
|
||||||
|
{ name = "uvloop", specifier = ">=0.21.0" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|||||||
Reference in New Issue
Block a user