Skip to content

Commit

Permalink
chore(node-builder): make DB generic Unpin in node components (#6227
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rkrasiuk authored Jan 25, 2024
1 parent 2de10a1 commit 720815a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/node-core/src/cli/components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 720815a

Please sign in to comment.