1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 16:23:48 +00:00

small improvement of DownloadFileChannelRequestCallFactory

This commit is contained in:
InsanusMokrassar 2021-08-10 11:29:46 +06:00
parent 2049fea82a
commit 149ecf175b

View File

@ -23,7 +23,7 @@ object DownloadFileChannelRequestCallFactory : KtorCallFactory {
): T? = (request as? DownloadFileStream) ?.let {
val fullUrl = urlsKeeper.createFileLinkUrl(it.filePath)
return ByteReadChannelAllocator {
ByteReadChannelAllocator {
val scope = CoroutineScope(coroutineContext)
val outChannel = ByteChannel()
scope.launch {