From a769deb6edb9d4a00227cd4d9cc78a9d750be249 Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Mon, 7 Oct 2024 16:26:06 +0200 Subject: [PATCH] chore(typo): event_publiher -> event_publisher (#149) --- crates/common/src/config/pbs.rs | 6 +++--- crates/pbs/src/service.rs | 2 +- crates/pbs/src/state.rs | 2 +- tests/tests/pbs_integration.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/common/src/config/pbs.rs b/crates/common/src/config/pbs.rs index e3bcaaa0..b4d04782 100644 --- a/crates/common/src/config/pbs.rs +++ b/crates/common/src/config/pbs.rs @@ -97,7 +97,7 @@ pub struct PbsModuleConfig { /// Signer client to call Signer API pub signer_client: Option, /// Event publisher - pub event_publiher: Option, + pub event_publisher: Option, } fn default_pbs() -> String { @@ -117,7 +117,7 @@ pub fn load_pbs_config() -> Result { pbs_config: Arc::new(config.pbs.pbs_config), relays: relay_clients, signer_client: None, - event_publiher: maybe_publiher, + event_publisher: maybe_publiher, }) } @@ -161,7 +161,7 @@ pub fn load_pbs_custom_config() -> Result<(PbsModuleConfig, pbs_config: Arc::new(cb_config.pbs.static_config.pbs_config), relays: relay_clients, signer_client, - event_publiher: maybe_publiher, + event_publisher: maybe_publiher, }, cb_config.pbs.extra, )) diff --git a/crates/pbs/src/service.rs b/crates/pbs/src/service.rs index cf916e0b..af1725fe 100644 --- a/crates/pbs/src/service.rs +++ b/crates/pbs/src/service.rs @@ -21,7 +21,7 @@ impl PbsService { pub async fn run>(state: PbsState) -> Result<()> { let address = SocketAddr::from(([0, 0, 0, 0], state.config.pbs_config.port)); let events_subs = - state.config.event_publiher.as_ref().map(|e| e.n_subscribers()).unwrap_or_default(); + state.config.event_publisher.as_ref().map(|e| e.n_subscribers()).unwrap_or_default(); info!(?address, events_subs, chain =? state.config.chain, "Starting PBS service"); let app = create_app_router::(state); diff --git a/crates/pbs/src/state.rs b/crates/pbs/src/state.rs index c8c68b62..5fb48e1c 100644 --- a/crates/pbs/src/state.rs +++ b/crates/pbs/src/state.rs @@ -53,7 +53,7 @@ where S: BuilderApiState, { pub fn publish_event(&self, e: BuilderEvent) { - if let Some(publisher) = self.config.event_publiher.as_ref() { + if let Some(publisher) = self.config.event_publisher.as_ref() { publisher.publish(e); } } diff --git a/tests/tests/pbs_integration.rs b/tests/tests/pbs_integration.rs index 750d0147..88578d82 100644 --- a/tests/tests/pbs_integration.rs +++ b/tests/tests/pbs_integration.rs @@ -36,7 +36,7 @@ fn to_pbs_config(chain: Chain, pbs_config: PbsConfig, relays: Vec) chain, pbs_config: Arc::new(pbs_config), signer_client: None, - event_publiher: None, + event_publisher: None, relays, } }