Skip to content

Commit 4211920

Browse files
committed
lint
1 parent 845b32b commit 4211920

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

crates/rbuilder-operator/src/flashbots_config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ impl FlashbotsConfig {
331331
/// Depending on the cfg may create:
332332
/// - Dummy sink (no built_blocks_clickhouse_config)
333333
/// - BuiltBlocksWriter that writes to clickhouse
334+
///
334335
/// Returns (BidObserver, RelaySubmissionPolicy, Option<JoinHandle> for clickhouse shutdown)
335336
#[allow(clippy::type_complexity)]
336337
fn create_clickhouse_writer_and_submission_policy(

crates/rbuilder/src/live_builder/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,7 @@ where
11651165
}
11661166

11671167
/// Take the end of the pipeline (sink_factory) + pre-created slot_info_provider and creates an empty builder (it still needs the with_builders to be called)
1168+
#[allow(clippy::too_many_arguments)]
11681169
pub async fn create_builder_from_sink<P>(
11691170
base_config: &BaseConfig,
11701171
l1_config: &L1Config,

crates/rbuilder/src/live_builder/process_killer.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ use alloy_eips::merge::SLOT_DURATION_SECS;
99
use tokio_util::sync::CancellationToken;
1010
use tracing::error;
1111

12-
/// Time for the run_submit_to_relays_job to stop submitting blocks after the cancellation token is cancelled.
13-
/// It's just a loop that signs blocks and submits them async (on detached tasks) so if should not take more than a second.
14-
pub const RUN_SUBMIT_TO_RELAYS_JOB_CANCEL_TIME_SECONDS: u64 = 1;
15-
1612
/// Time for the block building to close after the cancellation token is cancelled.
1713
/// We use a whole block as heuristic for the time to close.
1814
pub const BLOCK_BUILDING_CLOSE_TIME_SECONDS: u64 = SLOT_DURATION_SECS;
@@ -26,7 +22,6 @@ pub const CLICKHOUSE_CLOSE_TIME_SECONDS: u64 = 10;
2622
/// This time should be enough to let the process to finish its work and exit gracefully.
2723
/// Example of this need is the clickhouse backup that takes a while to finish and we don't want to loose any blocks.
2824
/// This should be > than everything we have to wait for in the constants above.
29-
3025
pub const GRACEFUL_SHUTDOWN_TIMEOUT_SECONDS: u64 = BLOCK_BUILDING_CLOSE_TIME_SECONDS;
3126
pub const GRACEFUL_SHUTDOWN_TIMEOUT: Duration =
3227
Duration::from_secs(GRACEFUL_SHUTDOWN_TIMEOUT_SECONDS);

0 commit comments

Comments
 (0)