and backend reference to rpc builder (#3979)

This commit is contained in:
Benjamin Kampmann
2019-10-31 16:44:52 +01:00
committed by Gavin Wood
parent eb3c950cfe
commit 363c8989d4
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -96,7 +96,7 @@ macro_rules! new_full_start {
import_setup = Some((block_import, grandpa_link, babe_link));
Ok(import_queue)
})?
.with_rpc_extensions(|client, pool| -> RpcExtension {
.with_rpc_extensions(|client, pool, _backend| -> RpcExtension {
node_rpc::create(client, pool)
})?;
@@ -326,7 +326,7 @@ pub fn new_light<C: Send + Default + 'static>(config: NodeConfiguration<C>)
.with_finality_proof_provider(|client, backend|
Ok(Arc::new(GrandpaFinalityProofProvider::new(backend, client)) as _)
)?
.with_rpc_extensions(|client, pool| -> RpcExtension {
.with_rpc_extensions(|client, pool, _backend| -> RpcExtension {
node_rpc::create(client, pool)
})?
.build()?;