Skip to content

Commit

Permalink
try 300
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jan 22, 2025
1 parent df524d0 commit 83443a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/node/src/delayed_resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use std::{
};

/// Delay into the slot
pub const MAX_DELAY_INTO_SLOT: Duration = Duration::from_millis(500);
pub const MAX_DELAY_INTO_SLOT: Duration = Duration::from_millis(300);

/// The getpayload fn we want to delay
pub const GET_PAYLOAD_V3: &str = "engine_getPayloadV3";
Expand Down Expand Up @@ -61,7 +61,7 @@ impl DelayedResolver {
if offset < self.inner.max_delay_into_slot {
// if we received the request before the max delay exceeded we can delay the request to
// give the payload builder more time to build the payload.
let delay = self.inner.max_delay_into_slot - offset;
let delay = self.inner.max_delay_into_slot.saturating_sub(offset);
tokio::time::sleep(delay).await;
}

Expand Down

0 comments on commit 83443a0

Please sign in to comment.