mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 21:21:32 +00:00
14 lines
335 B
Rust
14 lines
335 B
Rust
use std::{thread::sleep, time::Duration};
|
|
|
|
use anyhow::Result;
|
|
use hyphanet::autonet::AutoNetworkCollector;
|
|
|
|
fn main() -> Result<()> {
|
|
let mut collector = AutoNetworkCollector::new()?;
|
|
loop {
|
|
let changeset = collector.read_changes()?;
|
|
println!("{:?}", changeset);
|
|
sleep(Duration::from_secs(2));
|
|
}
|
|
}
|