Purge EventProcessor from RPU

This commit is contained in:
Greg Fitzgerald
2018-05-14 14:35:25 -06:00
parent 17cc9ab07f
commit 685de30047
3 changed files with 17 additions and 30 deletions

View File

@ -191,12 +191,7 @@ mod tests {
let accountant = Accountant::new(&alice);
let bob_pubkey = KeyPair::new().pubkey();
let exit = Arc::new(AtomicBool::new(false));
let event_processor = EventProcessor::new(
accountant,
&alice.last_id(),
Some(Duration::from_millis(30)),
);
let rpu = Rpu::new(event_processor);
let rpu = Rpu::new(accountant, alice.last_id(), Some(Duration::from_millis(30)));
let threads = rpu.serve(d, serve, gossip, exit.clone(), sink()).unwrap();
sleep(Duration::from_millis(900));
@ -234,12 +229,7 @@ mod tests {
let accountant = Accountant::new(&alice);
let bob_pubkey = KeyPair::new().pubkey();
let exit = Arc::new(AtomicBool::new(false));
let event_processor = EventProcessor::new(
accountant,
&alice.last_id(),
Some(Duration::from_millis(30)),
);
let rpu = Rpu::new(event_processor);
let rpu = Rpu::new(accountant, alice.last_id(), Some(Duration::from_millis(30)));
let serve_addr = leader_serve.local_addr().unwrap();
let threads = rpu.serve(
leader_data,
@ -308,12 +298,7 @@ mod tests {
let leader_acc = {
let accountant = Accountant::new(&alice);
let event_processor = EventProcessor::new(
accountant,
&alice.last_id(),
Some(Duration::from_millis(30)),
);
Rpu::new(event_processor)
Rpu::new(accountant, alice.last_id(), Some(Duration::from_millis(30)))
};
let replicant_acc = {