Config recorder with any kind of Duration, not just milliseconds

This commit is contained in:
Greg Fitzgerald
2018-05-14 14:12:36 -06:00
parent 27984e469a
commit 3f10bf44db
7 changed files with 47 additions and 26 deletions

View File

@@ -19,6 +19,7 @@ use std::net::UdpSocket;
use std::process::exit;
use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use std::time::Duration;
fn print_usage(program: &str, opts: Options) {
let mut brief = format!("Usage: cat <transaction.log> | {} [options]\n\n", program);
@@ -115,7 +116,8 @@ fn main() {
eprintln!("creating networking stack...");
let event_processor = EventProcessor::new(accountant, &last_id, Some(1000));
let event_processor =
EventProcessor::new(accountant, &last_id, Some(Duration::from_millis(1000)));
let exit = Arc::new(AtomicBool::new(false));
let rpu = Rpu::new(event_processor);
let serve_sock = UdpSocket::bind(&serve_addr).unwrap();