From f467c1353da1147f3fcb51645cf2190ac0c071ed Mon Sep 17 00:00:00 2001 From: haixuantao Date: Sun, 8 Dec 2024 09:44:09 +0000 Subject: [PATCH] increase delay duration --- apis/rust/node/src/event_stream/mod.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apis/rust/node/src/event_stream/mod.rs b/apis/rust/node/src/event_stream/mod.rs index a82d9aeb..4856cbb6 100644 --- a/apis/rust/node/src/event_stream/mod.rs +++ b/apis/rust/node/src/event_stream/mod.rs @@ -175,12 +175,7 @@ impl EventStream { break; } } else { - match select( - Delay::new(Duration::from_nanos(10_000)), - self.receiver.next(), - ) - .await - { + match select(Delay::new(Duration::from_micros(300)), self.receiver.next()).await { Either::Left((_elapsed, _)) => break, Either::Right((Some(event), _)) => self.scheduler.add_event(event), Either::Right((None, _)) => break,