feat: Bit of frontend changes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user