Skip to content

Commit

Permalink
is_duplicate function had incorrect check on rows_affected (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbalser authored Aug 3, 2023
1 parent a3a2cde commit 1e85fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobile_packet_verifier/src/event_ids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub async fn is_duplicate(
.bind(received_timestamp)
.execute(txn)
.await
.map(|result| result.rows_affected() > 0)
.map(|result| result.rows_affected() == 0)
.map_err(anyhow::Error::from)
}

Expand Down

0 comments on commit 1e85fe2

Please sign in to comment.