Skip to content

Commit

Permalink
map the infinite-loop future to return a Result instead
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-jiang committed Jan 9, 2025
1 parent 3d28e26 commit 4e290f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/topology/running.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl RunningTopology {
// Aggregate future that ends once anything detects that all tasks have shutdown.
let shutdown_complete_future = future::select_all(vec![
Box::pin(timeout) as future::BoxFuture<'static, Result<(), ()>>,
Box::pin(reporter) as future::BoxFuture<'static, ()>,
Box::pin(reporter.map(|()| Result::<(), ()>::Ok(()))) as future::BoxFuture<'static, Result<(), ()>>,
Box::pin(success) as future::BoxFuture<'static, Result<(), ()>>,
]);

Expand Down

0 comments on commit 4e290f9

Please sign in to comment.