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
8 changes: 4 additions & 4 deletions etl/src/replication/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ impl EventsStream {

// If the new LSN is less than the last one, we can safely ignore it, since we only want
// to report monotonically increasing LSN values.
if let Some(last_flush_lsn) = this.last_flush_lsn {
if flush_lsn < *last_flush_lsn {
flush_lsn = *last_flush_lsn;
}
if let Some(last_flush_lsn) = this.last_flush_lsn
&& flush_lsn < *last_flush_lsn
{
flush_lsn = *last_flush_lsn;
}

// If we are not forced to send an update, we can willingly do so based on a set of conditions.
Expand Down