Skip to content

Commit ed7c6a2

Browse files
authored
Ps/fix/main (#393)
* fix main * bump
1 parent 57a3464 commit ed7c6a2

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

deploy/stage/common-values-iris-mpc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
image: "ghcr.io/worldcoin/iris-mpc:v0.6.6"
1+
image: "ghcr.io/worldcoin/iris-mpc:v0.6.7"
22

33
environment: stage
44
replicaCount: 1

iris-mpc/src/bin/server.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -540,19 +540,16 @@ async fn server_main(config: Config) -> eyre::Result<()> {
540540

541541
let store_len = store.count_irises().await?;
542542

543-
tracing::info!(format!(
544-
"Size of the database during startup: {}",
545-
store_len
546-
));
543+
tracing::info!("Size of the database before init: {}", store_len);
547544

548545
// Seed the persistent storage with random shares if configured and db is still
549546
// empty.
550547
if store_len == 0 && config.init_db_size > 0 {
551-
tracing::info!(format!(
548+
tracing::info!(
552549
"Initialize persistent iris DB with {} randomly generated shares",
553550
config.init_db_size
554-
));
555-
tracing::info!(format!("Resetting the db: {}", config.clear_db_before_init));
551+
);
552+
tracing::info!("Resetting the db: {}", config.clear_db_before_init);
556553
store
557554
.init_db_with_random_shares(
558555
RNG_SEED_INIT_DB,
@@ -566,6 +563,8 @@ async fn server_main(config: Config) -> eyre::Result<()> {
566563
// Fetch again in case we've just initialized the DB
567564
let store_len = store.count_irises().await?;
568565

566+
tracing::info!("Size of the database after init: {}", store_len);
567+
569568
if store_len > MAX_DB_SIZE {
570569
tracing::error!("Database size exceeds maximum allowed size: {}", store_len);
571570
eyre::bail!("Database size exceeds maximum allowed size: {}", store_len);

0 commit comments

Comments
 (0)