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 11, 2023
1 parent 1db0e3f commit 60eace0
Show file tree
Hide file tree
Showing 11 changed files with 395 additions and 192 deletions.
6 changes: 3 additions & 3 deletions consensus/src/dag/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ use futures_channel::mpsc::UnboundedSender;
use std::{collections::HashMap, 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 @@ -64,7 +64,7 @@ impl NotifierAdapter {
#[async_trait]
impl Notifier for NotifierAdapter {
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 60eace0

Please sign in to comment.