From 20a500a7f3fa272326418312e3b57107ee96f0c4 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Sun, 23 Aug 2026 02:01:24 +0300 Subject: fix(api): start lifecycle subscriptions from live events (#3134) refs #1270 --- src/api/wait.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/api/wait.rs') diff --git a/src/api/wait.rs b/src/api/wait.rs index 7da9b7a9..0c47fbff 100644 --- a/src/api/wait.rs +++ b/src/api/wait.rs @@ -674,8 +674,14 @@ pub(super) fn wait_for_event( Ok(subscription) => subscription, Err(response) => return Ok(Some(serde_json::to_string(&response).unwrap())), }; - let mut active = match ActiveSubscription::new(subscription, &request_id, 0, api_tx, event_hub) - { + let mut active = match ActiveSubscription::new( + subscription, + &request_id, + 0, + api_tx, + event_hub, + event_hub.current_sequence(), + ) { Ok(active) => active, Err(response) => return Ok(Some(serde_json::to_string(&response).unwrap())), }; -- cgit v1.2.3