Skip to content

Commit

Permalink
fix: incorrect calculation for matching
Browse files Browse the repository at this point in the history
  • Loading branch information
koivunej committed Jul 12, 2024
1 parent 8966887 commit 75c6896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage_controller/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2866,7 +2866,7 @@ impl Service {
.filter(|(_, res)| res != &any.1)
.collect::<Vec<_>>();
if !mismatching.is_empty() {
let matching = mismatching.len() - (results.len() + 1);
let matching = results.len() - mismatching.len();
tracing::error!(
matching,
compared_against=?any,
Expand Down

0 comments on commit 75c6896

Please sign in to comment.