fix: delegate all calls (#4915)

This commit is contained in:
Matthias Seitz
2023-10-05 12:45:43 +02:00
committed by GitHub
parent 0a36bb6045
commit 2c4b8b7f39

View File

@@ -173,6 +173,25 @@ impl<T> NoArgs<T> {
}
impl<T: RethNodeCommandConfig> RethNodeCommandConfig for NoArgs<T> {
fn on_components_initialized<Reth: RethNodeComponents>(
&mut self,
components: &Reth,
) -> eyre::Result<()> {
if let Some(conf) = self.inner_mut() {
conf.on_components_initialized(components)
} else {
Ok(())
}
}
fn on_node_started<Reth: RethNodeComponents>(&mut self, components: &Reth) -> eyre::Result<()> {
if let Some(conf) = self.inner_mut() {
conf.on_node_started(components)
} else {
Ok(())
}
}
fn extend_rpc_modules<Conf, Reth>(
&mut self,
config: &Conf,