From c5cbd7402015e45558995e00d9623f41ecdf9732 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Tue, 10 Oct 2023 16:16:20 -0700 Subject: [PATCH 1/1] server: Drop `ago` field --- server/src/main.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/src/main.rs b/server/src/main.rs index 94a47d8..37de6bd 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -30,7 +30,6 @@ struct MessageKey { #[derive(Debug)] struct Message { key: MessageKey, - ago: u32, t: SystemTime, } @@ -43,7 +42,6 @@ impl From<&[u8; MESSAGE_SIZE]> for Message { device: u16::from_be_bytes(value[4..=5].try_into().expect("I can't count")), seq: u16::from_be_bytes(value[6..=7].try_into().expect("I can't count")), }, - ago, t: SystemTime::now() - Duration::new(ago.into(), 0), } } -- 2.44.1