Skip to content
Merged
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: 1 addition & 8 deletions src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,7 @@ where
let last_event_id = events.last().unwrap().id.clone();
let last_event_timestamp = events.last().unwrap().id.created_at;

if let Err(err) = self.sink.publish_events(events).await {
warn!(
last_event_id = %last_event_id.id,
error = %err,
"Sink failed during failover replay; aborting replay and staying in failover"
);
return Ok(());
}
self.sink.publish_events(events).await?;

// Record processing lag during failover replay
let lag_milliseconds = (Utc::now() - last_event_timestamp).num_milliseconds();
Expand Down
Loading