Skip to content

Commit

Permalink
read exact
Browse files Browse the repository at this point in the history
  • Loading branch information
eaypek-tfh committed Jan 20, 2025
1 parent ffa76dd commit a9497b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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:6203a4aed7747d16cfcd78145babca81aa5f2c52"
image: "ghcr.io/worldcoin/iris-mpc:4290e654ac66191af6eb3327c3980854257644ab"

environment: stage
replicaCount: 1
Expand Down
4 changes: 3 additions & 1 deletion iris-mpc-store/src/s3_importer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ pub async fn fetch_to_memory(

loop {
match result.read_exact(&mut slice).await {
Ok(_) => break,
Ok(_) => {
// left blank
}
Err(e) if e.kind() == std::io::ErrorKind::UnexpectedEof => break,
Err(e) => return Err(e.into()),
}
Expand Down

0 comments on commit a9497b3

Please sign in to comment.