From e8c43576d4df56b16b20e5d95228908262a71224 Mon Sep 17 00:00:00 2001 From: Sergei Shulepov Date: Tue, 1 Dec 2020 15:22:24 +0100 Subject: [PATCH] execute_with_client: add 'static bound for Backend (#2049) This is not a big change since the user definition AbstractClient already is 'static. --- polkadot/node/service/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/node/service/src/client.rs b/polkadot/node/service/src/client.rs index 04ba49fb12..0074803219 100644 --- a/polkadot/node/service/src/client.rs +++ b/polkadot/node/service/src/client.rs @@ -115,7 +115,7 @@ pub trait ExecuteWithClient { fn execute_with_client(self, client: Arc) -> Self::Output where >::StateBackend: sp_api::StateBackend, - Backend: sc_client_api::Backend, + Backend: sc_client_api::Backend + 'static, Backend::State: sp_api::StateBackend, Api: crate::RuntimeApiCollection, Client: AbstractClient + 'static;