Skip to content

Commit

Permalink
verify loaded record count equals to db size (#688)
Browse files Browse the repository at this point in the history
* verify loaded record count equals to db size

* bump stage version too
  • Loading branch information
eaypek-tfh authored Nov 15, 2024
1 parent 2b1e968 commit adca042
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/stage/common-values-iris-mpc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: "ghcr.io/worldcoin/iris-mpc:v0.9.8"
image: "ghcr.io/worldcoin/iris-mpc:v0.9.9"

environment: stage
replicaCount: 1
Expand Down
5 changes: 5 additions & 0 deletions iris-mpc/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,11 @@ async fn server_main(config: Config) -> eyre::Result<()> {
record_counter += 1;
}

assert_eq!(
record_counter, store_len,
"Loaded record count does not match db size"
);

tracing::info!("Preprocessing db");
actor.preprocess_db();

Expand Down

0 comments on commit adca042

Please sign in to comment.