Delete event.rs

This commit is contained in:
Greg Fitzgerald
2018-05-24 00:29:01 -06:00
parent b43ae748c3
commit 4cdf873f98
15 changed files with 59 additions and 140 deletions

View File

@@ -2,7 +2,6 @@
use bank::Bank;
use bincode::{deserialize, serialize};
use event::Event;
use packet;
use packet::SharedPackets;
use rayon::prelude::*;
@@ -15,6 +14,7 @@ use std::sync::mpsc::Receiver;
use std::time::Instant;
use streamer;
use timing;
use transaction::Transaction;
pub struct RequestProcessor {
bank: Arc<Bank>,
@@ -76,7 +76,7 @@ impl RequestProcessor {
// Copy-paste of deserialize_requests() because I can't figure out how to
// route the lifetimes in a generic version.
pub fn deserialize_events(p: &packet::Packets) -> Vec<Option<(Event, SocketAddr)>> {
pub fn deserialize_events(p: &packet::Packets) -> Vec<Option<(Transaction, SocketAddr)>> {
p.packets
.par_iter()
.map(|x| {