Purge EventProcessor from RPU
This commit is contained in:
@ -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 = {
|
||||
|
Reference in New Issue
Block a user