Replaced try_join func by tokio::try_join to be consistent with delete_all
This commit is contained in:
parent
59a11ee37b
commit
6ebfe4e03f
@ -1,5 +1,4 @@
|
||||
use crate::prelude::*;
|
||||
use futures::future::try_join;
|
||||
use itertools::Itertools;
|
||||
use rustc_hash::FxHashSet;
|
||||
use std::{fmt::Write, path::Path};
|
||||
@ -7,7 +6,7 @@ use teloxide::{
|
||||
net::Download,
|
||||
types::{Document, FileMeta},
|
||||
};
|
||||
use tokio::task::spawn_blocking;
|
||||
use tokio::{task::spawn_blocking, try_join};
|
||||
use trim_in_place::TrimInPlace;
|
||||
|
||||
#[inline]
|
||||
@ -173,7 +172,7 @@ pub async fn get_user(
|
||||
.map_err(Into::into)
|
||||
};
|
||||
|
||||
let (data, existing_names) = try_join(download_file(&bot, file), existing_names).await?;
|
||||
let (data, existing_names) = try_join!(download_file(&bot, file), existing_names)?;
|
||||
|
||||
let user = match spawn_blocking(move || user_from_vec(data, existing_names)).await? {
|
||||
Ok(Ok(user)) => user,
|
||||
|
Loading…
Reference in New Issue
Block a user