Skip to content

Commit

Permalink
Update src/db/in_memory_db.rs
Browse files Browse the repository at this point in the history
Co-authored-by: chloehebant <[email protected]>
  • Loading branch information
tbrezot and chloehebant authored Feb 23, 2024
1 parent d5bca86 commit 5a79da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/in_memory_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl EdxDbInterface for InMemoryDb {

async fn upsert(&self, old_values: Edx, new_values: Edx) -> Result<Edx, InMemoryDbError> {
let edx = &mut self.lock().expect("couldn't lock the table");
// Ensures an value is present inside the EDX for each given old value.
// Ensures a value is present inside the EDX for each given old value.
if old_values.keys().any(|token| !edx.contains_key(token)) {
return Err(InMemoryDbError(format!(
"missing EDX tokens {:?}",
Expand Down

0 comments on commit 5a79da4

Please sign in to comment.