Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
staffik committed Feb 6, 2024
1 parent e1bd8fc commit 20b4e9a
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions chain/client/src/stateless_validation/chunk_endorsement_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,12 @@ impl ChunkEndorsementTracker {
let mut guard = self.pending_chunk_endorsements.lock();
guard.pop(chunk_hash)
};
let chunk_endorsements = match chunk_endorsements {
Some(chunk_endorsements) => chunk_endorsements,
None => {
return;
}
};
let Some(chunk_endorsements) = chunk_endorsements else { return; };
tracing::debug!(target: "stateless_validation", ?chunk_hash, "Processing pending chunk endorsements.");
for endorsement in chunk_endorsements.values() {
let _ = self.process_chunk_endorsement(chunk_header, endorsement.clone())
.map_err(|error| {
tracing::debug!(target: "stateless_validation", ?endorsement, "Error processing pending chunk endorsement: {:?}", error);
error
});
if let Err(error) = self.process_chunk_endorsement(chunk_header, endorsement.clone()) {
tracing::debug!(target: "stateless_validation", ?endorsement, "Error processing pending chunk endorsement: {:?}", error);
}
}
}

Expand Down

0 comments on commit 20b4e9a

Please sign in to comment.