Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed Jul 7, 2023
1 parent f4fa2b3 commit cab960f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions aquadoggo/src/replication/ingest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ impl SyncIngest {

trace!("Received entry and operation: {}", encoded_entry.hash());

// Check if we already have this entry. This can happen if another peer sent it to
// us during a concurrent sync session.
let is_duplicate = store
// Check if we already have this entry. This can happen if another peer sent it to us
// during a concurrent sync session.
if store
.get_entry(&encoded_entry.hash())
.await
.expect("Fatal database error")
.is_some();
if is_duplicate {
.is_some()
{
return Err(IngestError::DuplicateEntry(encoded_entry.hash()));
}

Expand Down

0 comments on commit cab960f

Please sign in to comment.