Skip to content

Commit

Permalink
Further remove async throughout
Browse files Browse the repository at this point in the history
  • Loading branch information
SkandaBhat committed Dec 11, 2024
1 parent d366faa commit d49ed90
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions crates/rbuilder/src/bin/dummy-builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use std::{path::PathBuf, sync::Arc, thread::sleep, time::Duration};

use alloy_primitives::U256;
use async_trait::async_trait;
use jsonrpsee::RpcModule;
use rbuilder::{
beacon_api_client::Client,
Expand Down Expand Up @@ -241,7 +240,6 @@ impl DummyBuildingAlgorithm {
}
}

#[async_trait]
impl<P, DB> BlockBuildingAlgorithm<P, DB> for DummyBuildingAlgorithm
where
DB: Database + Clone + 'static,
Expand Down
2 changes: 0 additions & 2 deletions crates/rbuilder/src/building/builders/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use crate::{
};
use ahash::HashSet;
use alloy_primitives::{Address, Bytes, B256};
use async_trait::async_trait;
use block_building_helper::BlockBuildingHelper;
use reth::{
primitives::{BlobTransactionSidecar, SealedBlock},
Expand Down Expand Up @@ -229,7 +228,6 @@ pub struct BlockBuildingAlgorithmInput<P> {
/// Algorithm to build blocks
/// build_blocks should send block to input.sink until input.cancel is cancelled.
/// slot_bidder should be used to decide how much to bid.
#[async_trait]
pub trait BlockBuildingAlgorithm<P, DB>: Debug + Send + Sync
where
DB: Database + Clone + 'static,
Expand Down
2 changes: 0 additions & 2 deletions crates/rbuilder/src/building/builders/ordering_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use crate::{
};
use ahash::{HashMap, HashSet};
use alloy_primitives::Address;
use async_trait::async_trait;
use reth::revm::cached::CachedReads;
use reth_db::database::Database;
use reth_provider::{BlockReader, DatabaseProviderFactory, StateProviderFactory};
Expand Down Expand Up @@ -377,7 +376,6 @@ impl OrderingBuildingAlgorithm {
}
}

#[async_trait]
impl<P, DB> BlockBuildingAlgorithm<P, DB> for OrderingBuildingAlgorithm
where
DB: Database + Clone + 'static,
Expand Down
2 changes: 0 additions & 2 deletions crates/rbuilder/src/building/builders/parallel_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ use self::{

pub type GroupId = usize;
pub type ConflictResolutionResultPerGroup = (GroupId, (ResolutionResult, ConflictGroup));
use async_trait::async_trait;

/// ParallelBuilderConfig configures parallel builder.
/// * `num_threads` - number of threads to use for merging.
Expand Down Expand Up @@ -411,7 +410,6 @@ impl ParallelBuildingAlgorithm {
}
}

#[async_trait]
impl<P, DB> BlockBuildingAlgorithm<P, DB> for ParallelBuildingAlgorithm
where
DB: Database + Clone + 'static,
Expand Down

0 comments on commit d49ed90

Please sign in to comment.