refactor: give Pipeline a database (#2558)

This commit is contained in:
Matthias Seitz
2023-05-04 21:27:53 +02:00
committed by GitHub
parent acbbd6788c
commit 3dd27782e1
9 changed files with 163 additions and 135 deletions

View File

@ -16,7 +16,7 @@ pub trait SyncStateProvider: Send + Sync {
/// Eventually the node reaches the `Finish` stage and will transition to [`SyncState::Idle`], it
/// which point the node is considered fully synced.
#[auto_impl::auto_impl(&, Arc, Box)]
pub trait SyncStateUpdater: Send + Sync + 'static {
pub trait SyncStateUpdater: std::fmt::Debug + Send + Sync + 'static {
/// Notifies about an [SyncState] update.
fn update_sync_state(&self, state: SyncState);
}