Skip to main content

send_status_update

Function send_status_update 

Source
pub async fn send_status_update(
    duplex: &mut Duplex,
    confirmed_lsn: u64,
    _reply_requested: bool,
) -> Result<(), FaucetError>
Available on crate features source-postgres-cdc and source-rest only.
Expand description

Report progress to the server (Standby Status Update).

confirmed_lsn is the highest LSN whose changes have been durably written to the sink. The underlying library sends this feedback on its own keepalive schedule; calling this function additionally marks the progress so the next automatic feedback includes the latest position.

reply_requested mirrors the flag from the server’s KeepAlive message (no-op here since the library handles immediate replies internally).