ecdsa.rs - panic cleanup

This commit is contained in:
Jackson Sandland 2018-05-09 18:19:23 -07:00
parent 52ebb88205
commit bcd6606a16
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ pub fn ed25519_verify(batches: &Vec<SharedPackets>) -> Vec<Vec<u8>> {
.into_par_iter()
.map(|p| {
p.read()
.unwrap()
.expect("'p' read lock in ed25519_verify")
.packets
.par_iter()
.map(verify_packet)
@ -78,7 +78,7 @@ pub fn ed25519_verify(batches: &Vec<SharedPackets>) -> Vec<Vec<u8>> {
let mut rvs = Vec::new();
for packets in batches {
locks.push(packets.read().unwrap());
locks.push(packets.read().expect("'packets' read lock in pub fn ed25519_verify"));
}
let mut num = 0;
for p in locks {