Skip to content

Commit 256ab3f

Browse files
committed
Make ChainConfig work
1 parent f0fa792 commit 256ab3f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

magicblock-committor-service/src/tasks/account_fetcher.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ pub struct AccountFetcher {
1010
rpc_client: RpcClient,
1111
}
1212

13+
impl Default for AccountFetcher {
14+
fn default() -> Self {
15+
Self::new()
16+
}
17+
}
18+
1319
impl AccountFetcher {
1420
pub fn new() -> Self {
1521
use crate::{config::ChainConfig, ComputeBudgetConfig};
@@ -18,7 +24,7 @@ impl AccountFetcher {
1824
let chain_config =
1925
ChainConfig::local(ComputeBudgetConfig::new(1_000_000));
2026

21-
//#[cfg(not(feature = "dev-context-only-utils"))]
27+
#[cfg(not(feature = "dev-context-only-utils"))]
2228
let chain_config = ChainConfig {
2329
rpc_uri: magicblock_config::MagicBlockConfig::parse_config()
2430
.config

0 commit comments

Comments
 (0)