cargo fmt

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2024-06-23 00:02:06 +10:00
parent fc0f4f3906
commit 6795fbf31b
No known key found for this signature in database
GPG key ID: 76D1E687CA3C4928

View file

@ -75,11 +75,11 @@ impl<T: Send + 'static, E: Send + Debug + 'static> FuturesResolver<T, E> {
async move {
loop {
match rx.recv().await {
Some(Ok(ret)) => return Some(ret),
Some(Err(err)) => warn!(?err, "Fail to resolve the future"),
None => return None,
}
match rx.recv().await {
Some(Ok(ret)) => return Some(ret),
Some(Err(err)) => warn!(?err, "Fail to resolve the future"),
None => return None,
}
}
}
}