Add missing async when downloading from URL (#3222)

This commit is contained in:
Reinier Romero Mir
2021-12-01 14:28:55 -05:00
committed by GitHub
parent bda4259815
commit f9643bf737

View File

@@ -962,7 +962,7 @@ class DownloadMethods:
f = file f = file
try: try:
with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
# TODO Use progress_callback; get content length from response # TODO Use progress_callback; get content length from response
# https://github.com/telegramdesktop/tdesktop/blob/c7e773dd9aeba94e2be48c032edc9a78bb50234e/Telegram/SourceFiles/ui/images.cpp#L1318-L1319 # https://github.com/telegramdesktop/tdesktop/blob/c7e773dd9aeba94e2be48c032edc9a78bb50234e/Telegram/SourceFiles/ui/images.cpp#L1318-L1319
async with session.get(web.url) as response: async with session.get(web.url) as response: