Skip to content

Commit

Permalink
return partial matches regardless of final matches
Browse files Browse the repository at this point in the history
  • Loading branch information
eaypek-tfh committed Oct 28, 2024
1 parent ea28066 commit 9e8af85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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:ee89ea0b0f1358d69ffbbf730b5ae427f7361153"
image: "ghcr.io/worldcoin/iris-mpc:c864d26668dcc5f1f86aba50a74563d9922a839f"

environment: stage
replicaCount: 1
Expand Down
12 changes: 6 additions & 6 deletions iris-mpc/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -830,23 +830,23 @@ async fn server_main(config: Config) -> eyre::Result<()> {
true => Some(match_ids[i].iter().map(|x| x + 1).collect::<Vec<_>>()),
false => None,
},
match matches[i] {
true => Some(
match partial_match_ids_left[i].is_empty() {
false => Some(
partial_match_ids_left[i]
.iter()
.map(|x| x + 1)
.collect::<Vec<_>>(),
),
false => None,
true => None,
},
match matches[i] {
true => Some(
match partial_match_ids_right[i].is_empty() {
false => Some(
partial_match_ids_right[i]
.iter()
.map(|x| x + 1)
.collect::<Vec<_>>(),
),
false => None,
true => None,
},
);

Expand Down

0 comments on commit 9e8af85

Please sign in to comment.