Moved stdin onto root
This commit is contained in:
@@ -6,7 +6,6 @@ use bft_json_crdt::{
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
pub mod keys;
|
pub mod keys;
|
||||||
pub mod stdin;
|
|
||||||
pub mod websocket;
|
pub mod websocket;
|
||||||
|
|
||||||
#[add_crdt_fields]
|
#[add_crdt_fields]
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ pub mod bft_crdt;
|
|||||||
pub(crate) mod cli;
|
pub(crate) mod cli;
|
||||||
pub(crate) mod init;
|
pub(crate) mod init;
|
||||||
pub mod node;
|
pub mod node;
|
||||||
|
mod stdin;
|
||||||
pub mod utils;
|
pub mod utils;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
@@ -42,7 +43,7 @@ async fn setup(name: &String) -> SideNode {
|
|||||||
let (incoming_sender, incoming_receiver) = mpsc::channel::<SignedOp>(32);
|
let (incoming_sender, incoming_receiver) = mpsc::channel::<SignedOp>(32);
|
||||||
let (stdin_sender, stdin_receiver) = std::sync::mpsc::channel();
|
let (stdin_sender, stdin_receiver) = std::sync::mpsc::channel();
|
||||||
task::spawn(async move {
|
task::spawn(async move {
|
||||||
bft_crdt::stdin::input(stdin_sender);
|
stdin::input(stdin_sender);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Wire the websocket client to the incoming channel
|
// Wire the websocket client to the incoming channel
|
||||||
|
|||||||
Reference in New Issue
Block a user