Skip to content

Commit

Permalink
fix: timeout impl for tokio
Browse files Browse the repository at this point in the history
  • Loading branch information
gmallios committed Jul 10, 2024
1 parent 62d2895 commit 4756c2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manager-fut/src/tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ impl ManagerFuture for TokioFuture {
where
F: Future<Output = T>,
{
tokio::time::timeout(dur, fut)
match tokio::time::timeout(dur, fut).await {
Ok(res) => Ok(res),
Err(_) => Err(()),
}
}
}

Expand Down

0 comments on commit 4756c2f

Please sign in to comment.