alexbers / mtprotoproxy

Async MTProto proxy for Telegram
MIT License
1.59k stars 351 forks source link

Warnings with Python 3.10. #258

Closed Kirya2k closed 2 years ago

Kirya2k commented 2 years ago

After upgrade with Python 3.9.6 on 3.10 have appeared in the log:

/opt/root/mtprotoproxy/mtprotoproxy.py:2317: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /opt/root/mtprotoproxy/mtprotoproxy.py:2279: DeprecationWarning: There is no current event loop stats_printer_task = asyncio.Task(stats_printer()) /opt/root/mtprotoproxy/mtprotoproxy.py:2283: DeprecationWarning: There is no current event loop middle_proxy_updater_task = asyncio.Task(update_middle_proxy_info()) /opt/root/mtprotoproxy/mtprotoproxy.py:2287: DeprecationWarning: There is no current event loop time_get_task = asyncio.Task(get_srv_time()) /opt/root/mtprotoproxy/mtprotoproxy.py:2290: DeprecationWarning: There is no current event loop get_cert_len_task = asyncio.Task(get_mask_host_cert_len()) /opt/root/mtprotoproxy/mtprotoproxy.py:2293: DeprecationWarning: There is no current event loop clear_resolving_cache_task = asyncio.Task(clear_ip_resolving_cache())

Kirya2k commented 2 years ago

Fixed in v 1.1.1 Thx !