Moved stdin onto root

This commit is contained in:
Dave
2025-06-12 16:27:41 -04:00
parent b933f8d6fc
commit 0126614dd3
3 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,6 @@ use bft_json_crdt::{
use serde::{Deserialize, Serialize};
pub mod keys;
pub mod stdin;
pub mod websocket;
#[add_crdt_fields]

View File

@@ -9,6 +9,7 @@ pub mod bft_crdt;
pub(crate) mod cli;
pub(crate) mod init;
pub mod node;
mod stdin;
pub mod utils;
#[tokio::main]
@@ -42,7 +43,7 @@ async fn setup(name: &String) -> SideNode {
let (incoming_sender, incoming_receiver) = mpsc::channel::<SignedOp>(32);
let (stdin_sender, stdin_receiver) = std::sync::mpsc::channel();
task::spawn(async move {
bft_crdt::stdin::input(stdin_sender);
stdin::input(stdin_sender);
});
// Wire the websocket client to the incoming channel