File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
- image : " ghcr.io/worldcoin/iris-mpc:v0.6.6 "
1
+ image : " ghcr.io/worldcoin/iris-mpc:v0.6.7 "
2
2
3
3
environment : stage
4
4
replicaCount : 1
Original file line number Diff line number Diff line change @@ -540,19 +540,16 @@ async fn server_main(config: Config) -> eyre::Result<()> {
540
540
541
541
let store_len = store. count_irises ( ) . await ?;
542
542
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) ;
547
544
548
545
// Seed the persistent storage with random shares if configured and db is still
549
546
// empty.
550
547
if store_len == 0 && config. init_db_size > 0 {
551
- tracing:: info!( format! (
548
+ tracing:: info!(
552
549
"Initialize persistent iris DB with {} randomly generated shares" ,
553
550
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) ;
556
553
store
557
554
. init_db_with_random_shares (
558
555
RNG_SEED_INIT_DB ,
@@ -566,6 +563,8 @@ async fn server_main(config: Config) -> eyre::Result<()> {
566
563
// Fetch again in case we've just initialized the DB
567
564
let store_len = store. count_irises ( ) . await ?;
568
565
566
+ tracing:: info!( "Size of the database after init: {}" , store_len) ;
567
+
569
568
if store_len > MAX_DB_SIZE {
570
569
tracing:: error!( "Database size exceeds maximum allowed size: {}" , store_len) ;
571
570
eyre:: bail!( "Database size exceeds maximum allowed size: {}" , store_len) ;
You can’t perform that action at this time.
0 commit comments