Skip to content

Commit

Permalink
[dag] dag rebootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
ibalajiarun committed Sep 7, 2023
1 parent 7e41139 commit b00b863
Show file tree
Hide file tree
Showing 10 changed files with 416 additions and 188 deletions.
6 changes: 3 additions & 3 deletions consensus/src/dag/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ use futures_channel::mpsc::UnboundedSender;
use std::sync::Arc;

#[async_trait]
pub trait Notifier: Send {
pub trait Notifier: Send + Sync {
fn send_ordered_nodes(
&mut self,
&self,
ordered_nodes: Vec<Arc<CertifiedNode>>,
failed_author: Vec<(Round, Author)>,
) -> anyhow::Result<()>;
Expand Down Expand Up @@ -54,7 +54,7 @@ impl NotificationAdapter {
#[async_trait]
impl Notifier for NotificationAdapter {
fn send_ordered_nodes(
&mut self,
&self,
ordered_nodes: Vec<Arc<CertifiedNode>>,
failed_author: Vec<(Round, Author)>,
) -> anyhow::Result<()> {
Expand Down
Loading

0 comments on commit b00b863

Please sign in to comment.