Make progres on handling NewSet events

Further bones out the coordinator.
This commit is contained in:
Luke Parker
2023-04-16 00:51:56 -04:00
parent fa2cf03e61
commit 79655672ef
6 changed files with 164 additions and 18 deletions

25
coordinator/src/p2p.rs Normal file
View File

@@ -0,0 +1,25 @@
use core::fmt::Debug;
use async_trait::async_trait;
use tributary::P2p as TributaryP2p;
// TODO
#[async_trait]
pub trait P2p: Send + Sync + Clone + Debug + TributaryP2p {}
// TODO
#[derive(Clone, Debug)]
pub struct LocalP2p {}
#[async_trait]
impl TributaryP2p for LocalP2p {
async fn broadcast(&self, msg: Vec<u8>) {
// TODO
todo!()
}
}
// TODO
#[async_trait]
impl P2p for LocalP2p {}