Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt committed Dec 31, 2024
1 parent f803134 commit 9434fe4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
1 change: 1 addition & 0 deletions crates/rbuilder/src/blocklist/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use serde::{Deserialize, Deserializer};
use std::fs::read_to_string;
use std::path::PathBuf;

#[allow(clippy::len_without_is_empty)]
#[derive(Debug, Clone, PartialEq, Eq, Default)]
pub struct BlockList {
list: HashSet<Address>,
Expand Down
13 changes: 0 additions & 13 deletions crates/rbuilder/src/live_builder/base_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,17 +308,6 @@ impl BaseConfig {
Ok(extra_data)
}

<<<<<<< Updated upstream
pub fn blocklist(&self) -> eyre::Result<HashSet<Address>> {
if let Some(path) = &self.blocklist_file_path {
let blocklist_file = read_to_string(path).context("blocklist file")?;
let blocklist: Vec<Address> =
serde_json::from_str(&blocklist_file).context("blocklist file")?;
return Ok(blocklist.into_iter().collect());
}
Ok(HashSet::default())
}

pub async fn flashbots_db(&self) -> eyre::Result<Option<PgPool>> {
if let Some(url) = &self.flashbots_db {
let url = url.value()?;
Expand All @@ -329,8 +318,6 @@ impl BaseConfig {
}
}

=======
>>>>>>> Stashed changes
pub fn eth_rpc_provider(&self) -> eyre::Result<BoxedProvider> {
Ok(http_provider(self.backtest_fetch_eth_rpc_url.parse()?))
}
Expand Down

0 comments on commit 9434fe4

Please sign in to comment.