Saved file before commit

This commit is contained in:
famfo 2021-12-22 19:04:19 +01:00
parent 4b7318e8dc
commit a70f4ffc0a

View file

@ -11,7 +11,6 @@ use tokio::{
use uuid::Uuid;
// TODO:
// * use the log crate
// * track nicknames
#[derive(Clone, Debug)]
@ -33,7 +32,7 @@ enum ClientMessage {
#[tokio::main(flavor = "current_thread")]
async fn main() -> io::Result<()> {
tracing_subscriber::fmt::init();
let listener = TcpListener::bind("127.0.0.1:9090").await?;
let (br_send, _) = broadcast::channel::<BroadcastMessage>(1024);
let users: Arc<Mutex<HashMap<String, String>>> = Arc::new(Mutex::new(HashMap::new()));