Skip to content

Commit

Permalink
fix: offset generation to show proper upload count
Browse files Browse the repository at this point in the history
  • Loading branch information
ozwaldorf committed Oct 10, 2024
1 parent ebbe580 commit de3aa66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const UPLOAD_METRICS_KEY: &str = "_upload_metrics";
/// Get a counter from the key value store
fn upload_count(kv: &KVStore) -> u32 {
kv.lookup(UPLOAD_METRICS_KEY)
.map(|v| v.generation())
.map(|v| v.generation() + 1)
.unwrap_or_default()
}

Expand Down

0 comments on commit de3aa66

Please sign in to comment.