Skip to content

Commit

Permalink
filter out matches outside batchsize (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
philsippl authored Nov 20, 2024
1 parent 8e4272b commit f371fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iris-mpc-gpu/src/server/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ impl ServerActor {
.iter()
.map(|ids| {
ids.iter()
.filter(|&&x| x > (u32::MAX - self.max_batch_size as u32))
.filter(|&&x| x > (u32::MAX - batch_size as u32)) // ignore matches outside the batch size (dummy matches)
.map(|&x| batch.request_ids[(u32::MAX - x) as usize].clone())
.collect::<Vec<_>>()
})
Expand Down

0 comments on commit f371fa8

Please sign in to comment.