Skip to content

Commit

Permalink
Remove duplicate prefetching (#13694)
Browse files Browse the repository at this point in the history
  • Loading branch information
vusirikala authored Jun 14, 2024
1 parent 5530a29 commit 69d241b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions consensus/src/payload_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ impl PayloadManager {
pub fn prefetch_payload_data(&self, payload: &Payload, timestamp: u64) {
let request_txns_and_update_status =
move |proof_with_status: &ProofWithData, batch_reader: Arc<dyn BatchReader>| {
if proof_with_status.status.lock().is_some() {
return;
}
let receivers = PayloadManager::request_transactions(
proof_with_status.proofs.clone(),
timestamp,
Expand Down

0 comments on commit 69d241b

Please sign in to comment.