Skip to content

Commit

Permalink
chore: Do not show 50k logs for db init (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechsromek authored Aug 7, 2024
1 parent 51a9fcb commit d5288dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions deploy/stage/common-values-gpu-iris-mpc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: "ghcr.io/worldcoin/gpu-iris-mpc:v0.2.9-alpha"
image: "ghcr.io/worldcoin/gpu-iris-mpc:v0.2.10-alpha"

environment: stage
replicaCount: 1
Expand All @@ -15,13 +15,13 @@ ports:
protocol: TCP

livenessProbe:
initialDelaySeconds: 90
initialDelaySeconds: 300
httpGet:
path: /health
port: health

readinessProbe:
initialDelaySeconds: 90
initialDelaySeconds: 300
httpGet:
path: /health
port: health
Expand Down
6 changes: 5 additions & 1 deletion src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,15 @@ async fn initialize_iris_dbs(
let mut store_len = 0;
while let Some(iris) = store.stream_irises().await.next().await {
let iris = iris?;

codes_db.extend(iris.left_code());
masks_db.extend(iris.left_mask());

store_len += 1;

tracing::info!("Initialize iris db: Loaded {} entries from DB", store_len);
if (store_len % 10000) == 0 {
tracing::info!("Initialize iris db: Loaded {} entries from DB", store_len);
}
}

Ok((codes_db, masks_db, store_len))
Expand Down

0 comments on commit d5288dd

Please sign in to comment.