feat: Bit of frontend changes

This commit is contained in:
2025-11-29 13:38:17 +01:00
parent 7711bcc220
commit 92187dc638
11 changed files with 87 additions and 89 deletions

View File

@@ -1,8 +1,4 @@
use std::{
collections::HashMap,
io::Error,
};
use std::{collections::HashMap, io::Error};
use log::{debug, error};
use serde::Deserialize;
use tokio::io::{AsyncBufReadExt, BufReader, BufWriter};
@@ -113,6 +109,8 @@ pub async fn init<A: ToSocketAddrs>(
.await?;
tcp_stream_writer.flush().await?;
debug!("Sent login: '{}'", login_message.trim());
loop {
let mut line = String::new();
@@ -131,7 +129,7 @@ pub async fn init<A: ToSocketAddrs>(
let current_timestamp = get_current_timestamp();
debug!("Got line: '{line}'");
debug!("Got line: '{}'", line.trim());
line_received_tx
.send(current_timestamp)