mirror of
https://github.com/tiennm99/mtprotoproxy.git
synced 2026-10-13 12:15:02 +00:00
use uvloop if available
This commit is contained in:
1 parent
51c40903ab
commit
d56c995ee2
1 file changed
+5
@@ -13,6 +13,11 @@ import sys
|
||||
import re
|
||||
import runpy
|
||||
|
||||
try:
|
||||
import uvloop
|
||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
try:
|
||||
from Crypto.Cipher import AES
|
||||
|
||||
Reference in new issue
Block a user