From: Scott Worley Date: Tue, 10 Oct 2023 23:16:20 +0000 (-0700) Subject: server: Drop `ago` field X-Git-Tag: v0.1.0~13 X-Git-Url: http://git.scottworley.com/tattlekey/commitdiff_plain/c5cbd7402015e45558995e00d9623f41ecdf9732?hp=5b8bd04910bea5ce2b70e922b1eb063475d52b5c server: Drop `ago` field --- 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), } }