From 856d9430a986fab5c05076e68c36693d1458dd9f Mon Sep 17 00:00:00 2001 From: Mars Ultor Date: Mon, 3 Feb 2025 23:47:57 -0600 Subject: [PATCH] small changes --- frontend/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/main.rs b/frontend/src/main.rs index 20b7e00..11f2367 100644 --- a/frontend/src/main.rs +++ b/frontend/src/main.rs @@ -41,10 +41,10 @@ fn main() { let notif: Vec = serde_json::from_str(payload_string.as_str()).unwrap(); //println!("Just recieved: {:#?}", notif); for notification in notif{ - reference_arc.lock().unwrap().push_back(notification.clone()); + reference_arc.lock().unwrap().push_front(notification.clone()); } - while reference_arc.lock().unwrap().len() > 10{ - reference_arc.lock().unwrap().pop_front(); + while reference_arc.lock().unwrap().len() > 20{ + reference_arc.lock().unwrap().pop_back(); } println!("Current vec length: {}", reference_arc.lock() .unwrap().len());