Skip to content

Commit

Permalink
chore(typo): event_publiher -> event_publisher (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb authored Oct 7, 2024
1 parent f38d309 commit a769deb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions crates/common/src/config/pbs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub struct PbsModuleConfig {
/// Signer client to call Signer API
pub signer_client: Option<SignerClient>,
/// Event publisher
pub event_publiher: Option<BuilderEventPublisher>,
pub event_publisher: Option<BuilderEventPublisher>,
}

fn default_pbs() -> String {
Expand All @@ -117,7 +117,7 @@ pub fn load_pbs_config() -> Result<PbsModuleConfig> {
pbs_config: Arc::new(config.pbs.pbs_config),
relays: relay_clients,
signer_client: None,
event_publiher: maybe_publiher,
event_publisher: maybe_publiher,
})
}

Expand Down Expand Up @@ -161,7 +161,7 @@ pub fn load_pbs_custom_config<T: DeserializeOwned>() -> 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,
))
Expand Down
2 changes: 1 addition & 1 deletion crates/pbs/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl PbsService {
pub async fn run<S: BuilderApiState, A: BuilderApi<S>>(state: PbsState<S>) -> 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::<S, A>(state);
Expand Down
2 changes: 1 addition & 1 deletion crates/pbs/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/pbs_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn to_pbs_config(chain: Chain, pbs_config: PbsConfig, relays: Vec<RelayClient>)
chain,
pbs_config: Arc::new(pbs_config),
signer_client: None,
event_publiher: None,
event_publisher: None,
relays,
}
}
Expand Down

0 comments on commit a769deb

Please sign in to comment.