mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fix batch downloader
This commit is contained in:
@@ -461,7 +461,6 @@ async fn download_archive(
|
|||||||
.send()
|
.send()
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
tokio::spawn(async move {
|
|
||||||
let mut i = 15 * 60 / 5;
|
let mut i = 15 * 60 / 5;
|
||||||
|
|
||||||
while task.status == TaskStatus::InProgress && i >= 0 {
|
while task.status == TaskStatus::InProgress && i >= 0 {
|
||||||
@@ -540,9 +539,6 @@ async fn download_archive(
|
|||||||
.delete_message(message.chat.id, message.id)
|
.delete_message(message.chat.id, message.id)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
Ok(())
|
|
||||||
});
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user