Skip to content

Commit de9d74e

Browse files
committed
fmt
1 parent 9dab75e commit de9d74e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ pub struct BuilderConfig {
157157

158158
/// Number of seconds before the end of the slot to stop querying for new blocks
159159
#[from_env(
160-
var ="BLOCK_QUERY_CUTOFF_SECS",
160+
var = "BLOCK_QUERY_CUTOFF_SECS",
161161
desc = "Number of seconds before the end of the slot to stop querying for new blocks",
162162
default = 2
163163
)]

src/tasks/block/sim.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ impl Simulator {
253253
// We have the timepoint in seconds into the slot. To find out what's
254254
// remaining, we need to subtract it from the slot duration
255255
// we also subtract 3 seconds to account for the sequencer stopping signing.
256-
let remaining = (self.slot_calculator().slot_duration() - timepoint).saturating_sub(self.config.block_query_cutoff_secs);
256+
let remaining = (self.slot_calculator().slot_duration() - timepoint)
257+
.saturating_sub(self.config.block_query_cutoff_secs);
257258

258259
let deadline = Instant::now() + Duration::from_secs(remaining);
259260
deadline.max(Instant::now())

0 commit comments

Comments
 (0)