diff --git a/node/src/databroker.rs b/node/src/databroker.rs index e6383f16ab..6a08f59ef8 100644 --- a/node/src/databroker.rs +++ b/node/src/databroker.rs @@ -93,15 +93,6 @@ impl DataBrokerSrv { impl LongLivedService for DataBrokerSrv { - async fn initialize( - &mut self, - _network: Arc>, - _db: Arc>, - _vm: Arc>, - ) -> anyhow::Result<()> { - Ok(()) - } - async fn execute( &mut self, network: Arc>, diff --git a/node/src/lib.rs b/node/src/lib.rs index 79911dc126..d2cb920296 100644 --- a/node/src/lib.rs +++ b/node/src/lib.rs @@ -106,12 +106,15 @@ pub trait Network: Send + Sync + 'static { pub trait LongLivedService: Send + Sync { + #[allow(unused_variables)] async fn initialize( &mut self, network: Arc>, database: Arc>, vm: Arc>, - ) -> anyhow::Result<()>; + ) -> anyhow::Result<()> { + Ok(()) + } async fn execute( &mut self, diff --git a/node/src/mempool.rs b/node/src/mempool.rs index 4f5b484696..1bdb248feb 100644 --- a/node/src/mempool.rs +++ b/node/src/mempool.rs @@ -52,15 +52,6 @@ impl Default for MempoolSrv { impl LongLivedService for MempoolSrv { - async fn initialize( - &mut self, - _network: Arc>, - _db: Arc>, - _vm: Arc>, - ) -> anyhow::Result<()> { - Ok(()) - } - async fn execute( &mut self, network: Arc>, diff --git a/node/src/telemetry.rs b/node/src/telemetry.rs index ae6f26007a..9e9dc20593 100644 --- a/node/src/telemetry.rs +++ b/node/src/telemetry.rs @@ -29,15 +29,6 @@ impl "telemetry" } - async fn initialize( - &mut self, - _network: Arc>, - _db: Arc>, - _vm: Arc>, - ) -> anyhow::Result<()> { - Ok(()) - } - /// Initialize and spawn Prometheus Exporter and Recorder async fn execute( &mut self,