Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions searcher_client/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use std::{
sync::Arc,
time::{Duration, Instant},
};
use std::{future, sync::Arc, time::{Duration, Instant}};

use futures_util::StreamExt;
use jito_protos::{
Expand Down Expand Up @@ -120,7 +117,9 @@ where
let mut time_left = 5000;
while let Ok(Some(Ok(results))) = timeout(
Duration::from_millis(time_left),
bundle_results_subscription.next(),
bundle_results_subscription
.filter(|bundle_result| future::ready(matches!(bundle_result, Ok(bundle) if bundle.bundle_id == uuid)))
.next(),
)
.await
{
Expand Down