Implement window service

Batch out of order blobs until we have a contigious window.
This commit is contained in:
Anatoly Yakovenko
2018-04-02 19:32:58 -07:00
parent bc0dde696a
commit 5ac7df17f9
7 changed files with 592 additions and 332 deletions

View File

@ -113,10 +113,11 @@ mod tests {
sink(),
historian,
)));
let _threads = AccountantSkel::serve(acc, addr, exit.clone()).unwrap();
let _threads = AccountantSkel::serve(&acc, addr, exit.clone()).unwrap();
sleep(Duration::from_millis(300));
let socket = UdpSocket::bind(send_addr).unwrap();
socket.set_read_timeout(Some(Duration::new(5, 0))).unwrap();
let acc = AccountantStub::new(addr, socket);
let last_id = acc.get_last_id().unwrap();