Variable rename
This commit is contained in:
@@ -55,12 +55,13 @@ async fn setup(name: &String) -> SideNode {
|
||||
node
|
||||
}
|
||||
|
||||
fn stdin_input(stdin_input_sender: std::sync::mpsc::Sender<String>) {
|
||||
/// Wait for stdin terminal input and send it to the node if any arrives
|
||||
fn stdin_input(stdin_sender: std::sync::mpsc::Sender<String>) {
|
||||
let stdin = std::io::stdin();
|
||||
let lines = stdin.lock().lines();
|
||||
for line in lines {
|
||||
println!("We're in stdin_input");
|
||||
let line = line.unwrap();
|
||||
stdin_input_sender.send(line).unwrap();
|
||||
stdin_sender.send(line).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user