projects
/
tattlekey
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b8bd04
)
server: Drop `ago` field
author
Scott Worley
<scottworley@scottworley.com>
Tue, 10 Oct 2023 23:16:20 +0000
(16:16 -0700)
committer
Scott Worley
<scottworley@scottworley.com>
Wed, 11 Oct 2023 01:50:37 +0000
(18:50 -0700)
server/src/main.rs
patch
|
blob
|
blame
|
history
diff --git
a/server/src/main.rs
b/server/src/main.rs
index 94a47d854dac42599b5001993f1d8b5385052d38..37de6bd44fae83acde13602b49a1a90876938441 100644
(file)
--- 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),
}
}