chore(node-builder): make DB generic Unpin in node components (#6227)

This commit is contained in:
Roman Krasiuk
2024-01-25 18:59:30 +01:00
committed by GitHub
parent 2de10a15b5
commit 720815a834

View File

@@ -48,7 +48,7 @@ impl<T, DB: Database> FullProvider<DB> for T where
/// The trait that is implemented for the Node command.
pub trait RethNodeComponents: Clone + Send + Sync + 'static {
/// Underlying database type.
type DB: Database + Clone + 'static;
type DB: Database + Clone + Unpin + 'static;
/// The Provider type that is provided by the node itself
type Provider: FullProvider<Self::DB>;
/// The transaction pool type
@@ -147,7 +147,7 @@ impl<DB, Provider, Pool, Network, Events, Tasks>
impl<DB, Provider, Pool, Network, Events, Tasks> RethNodeComponents
for RethNodeComponentsImpl<DB, Provider, Pool, Network, Events, Tasks>
where
DB: Database + Clone + 'static,
DB: Database + Clone + Unpin + 'static,
Provider: FullProvider<DB> + Clone + 'static,
Tasks: TaskSpawner + Clone + Unpin + 'static,
Pool: TransactionPool + Clone + Unpin + 'static,