Add uvloop support for asyncio in api_server and telegram_client; update requirements.txt
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
import logging
|
||||
import os
|
||||
import asyncio
|
||||
# Add uvloop for asyncio speedup
|
||||
import uvloop
|
||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||
|
||||
from pyrogram import Client
|
||||
from config import get_settings
|
||||
|
||||
|
||||
Reference in New Issue
Block a user