From 720815a83465a4c79c0066e466ad53d005cc32c1 Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Thu, 25 Jan 2024 18:59:30 +0100 Subject: [PATCH] chore(node-builder): make `DB` generic `Unpin` in node components (#6227) --- crates/node-core/src/cli/components.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/node-core/src/cli/components.rs b/crates/node-core/src/cli/components.rs index b8d5ba5728fe..04168dbc4403 100644 --- a/crates/node-core/src/cli/components.rs +++ b/crates/node-core/src/cli/components.rs @@ -48,7 +48,7 @@ impl FullProvider 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; /// The transaction pool type @@ -147,7 +147,7 @@ impl impl RethNodeComponents for RethNodeComponentsImpl where - DB: Database + Clone + 'static, + DB: Database + Clone + Unpin + 'static, Provider: FullProvider + Clone + 'static, Tasks: TaskSpawner + Clone + Unpin + 'static, Pool: TransactionPool + Clone + Unpin + 'static,