diff --git a/deploy/stage/common-values-iris-mpc.yaml b/deploy/stage/common-values-iris-mpc.yaml index 994d00396..2df3a443b 100644 --- a/deploy/stage/common-values-iris-mpc.yaml +++ b/deploy/stage/common-values-iris-mpc.yaml @@ -1,4 +1,4 @@ -image: "ghcr.io/worldcoin/iris-mpc:2a5c7a20b9f7cffccab773b3db007d9a9d85c39a" +image: "ghcr.io/worldcoin/iris-mpc:c712190e6a1da6b3253edd6166bf76168294c177" environment: stage replicaCount: 1 diff --git a/iris-mpc-store/src/lib.rs b/iris-mpc-store/src/lib.rs index 66db5ec06..fceef816a 100644 --- a/iris-mpc-store/src/lib.rs +++ b/iris-mpc-store/src/lib.rs @@ -18,7 +18,7 @@ pub use s3_importer::{fetch_and_parse_chunks, last_snapshot_timestamp, ObjectSto use sqlx::{ migrate::Migrator, postgres::PgPoolOptions, Executor, PgPool, Postgres, Row, Transaction, }; -use std::{ops::DerefMut, pin::Pin}; +use std::{ops::DerefMut, pin::Pin, u32}; const APP_NAME: &str = "SMPC"; const MAX_CONNECTIONS: u32 = 100; @@ -93,11 +93,11 @@ impl StoredIris { // Parse `id` (i64) let id_bytes = extract_slice(bytes, &mut cursor, 4)?; - let id = i64::from_be_bytes( + let id = u32::from_be_bytes( id_bytes .try_into() .map_err(|_| eyre!("Failed to convert id bytes to i64"))?, - ); + ) as i64; // parse codes and masks let left_code = extract_slice(bytes, &mut cursor, 25_600)?;