execute_with_client: add 'static bound for Backend (#2049)

This is not a big change since the user definition AbstractClient already is 'static.
This commit is contained in:
Sergei Shulepov
2020-12-01 15:22:24 +01:00
committed by GitHub
parent 36c11201cc
commit e8c43576d4
+1 -1
View File
@@ -115,7 +115,7 @@ pub trait ExecuteWithClient {
fn execute_with_client<Client, Api, Backend>(self, client: Arc<Client>) -> Self::Output
where
<Api as sp_api::ApiExt<Block>>::StateBackend: sp_api::StateBackend<BlakeTwo256>,
Backend: sc_client_api::Backend<Block>,
Backend: sc_client_api::Backend<Block> + 'static,
Backend::State: sp_api::StateBackend<BlakeTwo256>,
Api: crate::RuntimeApiCollection<StateBackend = Backend::State>,
Client: AbstractClient<Block, Backend, Api = Api> + 'static;