Skip to content

Commit a769deb

Browse files
authored
chore(typo): event_publiher -> event_publisher (#149)
1 parent f38d309 commit a769deb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

crates/common/src/config/pbs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub struct PbsModuleConfig {
9797
/// Signer client to call Signer API
9898
pub signer_client: Option<SignerClient>,
9999
/// Event publisher
100-
pub event_publiher: Option<BuilderEventPublisher>,
100+
pub event_publisher: Option<BuilderEventPublisher>,
101101
}
102102

103103
fn default_pbs() -> String {
@@ -117,7 +117,7 @@ pub fn load_pbs_config() -> Result<PbsModuleConfig> {
117117
pbs_config: Arc::new(config.pbs.pbs_config),
118118
relays: relay_clients,
119119
signer_client: None,
120-
event_publiher: maybe_publiher,
120+
event_publisher: maybe_publiher,
121121
})
122122
}
123123

@@ -161,7 +161,7 @@ pub fn load_pbs_custom_config<T: DeserializeOwned>() -> Result<(PbsModuleConfig,
161161
pbs_config: Arc::new(cb_config.pbs.static_config.pbs_config),
162162
relays: relay_clients,
163163
signer_client,
164-
event_publiher: maybe_publiher,
164+
event_publisher: maybe_publiher,
165165
},
166166
cb_config.pbs.extra,
167167
))

crates/pbs/src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl PbsService {
2121
pub async fn run<S: BuilderApiState, A: BuilderApi<S>>(state: PbsState<S>) -> Result<()> {
2222
let address = SocketAddr::from(([0, 0, 0, 0], state.config.pbs_config.port));
2323
let events_subs =
24-
state.config.event_publiher.as_ref().map(|e| e.n_subscribers()).unwrap_or_default();
24+
state.config.event_publisher.as_ref().map(|e| e.n_subscribers()).unwrap_or_default();
2525
info!(?address, events_subs, chain =? state.config.chain, "Starting PBS service");
2626

2727
let app = create_app_router::<S, A>(state);

crates/pbs/src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ where
5353
S: BuilderApiState,
5454
{
5555
pub fn publish_event(&self, e: BuilderEvent) {
56-
if let Some(publisher) = self.config.event_publiher.as_ref() {
56+
if let Some(publisher) = self.config.event_publisher.as_ref() {
5757
publisher.publish(e);
5858
}
5959
}

tests/tests/pbs_integration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn to_pbs_config(chain: Chain, pbs_config: PbsConfig, relays: Vec<RelayClient>)
3636
chain,
3737
pbs_config: Arc::new(pbs_config),
3838
signer_client: None,
39-
event_publiher: None,
39+
event_publisher: None,
4040
relays,
4141
}
4242
}

0 commit comments

Comments
 (0)