Compare commits
No commits in common. "e83cf5bfb53c923ed34f4a1e2bf57efc52c66643" and "6626110758270acede659e1281fa14f1ab72f245" have entirely different histories.
e83cf5bfb5
...
6626110758
|
@ -36,7 +36,7 @@ pub fn listen_to_client(tx: mpsc::Sender<String>, rx: mpsc::Receiver<String>, po
|
||||||
}
|
}
|
||||||
Err(_e) => {}
|
Err(_e) => {}
|
||||||
}
|
}
|
||||||
thread::sleep(Duration::from_micros(100));
|
thread::sleep(Duration::from_millis(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
let _ = tx.send(String::from_utf8_lossy(&buffer).to_string());
|
let _ = tx.send(String::from_utf8_lossy(&buffer).to_string());
|
||||||
|
|
|
@ -103,6 +103,6 @@ fn main() -> Result<()> {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
thread::sleep(Duration::from_millis(1));
|
thread::sleep(Duration::from_millis(100));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ pub fn write_to_server(
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
Err(_e) => println!("Couldn't send {value}"),
|
Err(_e) => println!("Couldn't send {value}"),
|
||||||
};
|
};
|
||||||
thread::sleep(Duration::from_micros(100));
|
thread::sleep(Duration::from_millis(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
let _ = tx.send(dbg!(String::from_utf8_lossy(&buffer).to_string()));
|
let _ = tx.send(dbg!(String::from_utf8_lossy(&buffer).to_string()));
|
||||||
|
|
Loading…
Reference in a new issue