small improvement of DownloadFileChannelRequestCallFactory

This commit is contained in:
InsanusMokrassar committed 2021-08-10 11:29:46 +06:00
1 parent 2049fea82a
commit 149ecf175b
1 file changed
+1 -1
@@ -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 {