ecdsa.rs - panic cleanup
This commit is contained in:
parent
52ebb88205
commit
bcd6606a16
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user