Delete SharedPackets (#3843)

* Delete SharedPackets

* Fix bench and sigverify
This commit is contained in:
Sagar Dhawan
2019-04-17 18:15:50 -07:00
committed by GitHub
parent 9ccd362461
commit 9c2809db21
8 changed files with 62 additions and 93 deletions

View File

@@ -139,7 +139,7 @@ fn create_request_processor(
let t_processor = spawn(move || loop {
let packets = r_reader.recv_timeout(Duration::from_secs(1));
if let Ok(packets) = packets {
for packet in &packets.read().unwrap().packets {
for packet in &packets.packets {
let req: result::Result<ReplicatorRequest, Box<bincode::ErrorKind>> =
deserialize(&packet.data[..packet.meta.size]);
match req {