Skip to content

Commit

Permalink
fix: start timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Oct 17, 2024
1 parent 117ebca commit e988fb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ async fn run() -> anyhow::Result<()> {
)?
.create()?;

let start_timestamp = latest_sink_timestamp(&consumer).await?.unwrap_or(0);
let start_timestamp =
latest_sink_timestamp(&consumer).await?.unwrap_or(0) + AGGREGATION_INTERVAL_MILLIS;
consumer.unassign().context("unassign sinks")?;
tracing::info!(start_timestamp = print_unix_millis(start_timestamp)?);

Expand Down

0 comments on commit e988fb8

Please sign in to comment.