From f60a3b878b788ae3e91095015ecb8dab31226efe Mon Sep 17 00:00:00 2001 From: Jen Tak Date: Sun, 15 Sep 2024 23:13:29 +0200 Subject: [PATCH] Add todos for tomorrow --- crates/pcap_probe/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/pcap_probe/src/main.rs b/crates/pcap_probe/src/main.rs index 2011a91..9cfdade 100644 --- a/crates/pcap_probe/src/main.rs +++ b/crates/pcap_probe/src/main.rs @@ -36,6 +36,7 @@ fn main() -> Result<()> { .open() .expect("can open the device for capture"); + // TODO: consider batching while let Ok(cap) = capture.next_packet() { let ts = Duration::new( cap.header.ts.tv_sec.unsigned_abs(), @@ -43,6 +44,7 @@ fn main() -> Result<()> { cap.header.ts.tv_usec.unsigned_abs() * 1000, ); + // TODO: use size of the packet to vary the event "strength" let event = Event::with_timestamp(EventKind::TestTick, ts); if let Err(err) = client.send(&Packet::from_event(event)) {