Don't unwrap result of call which makes network requests

This commit is contained in:
Luke Parker 2023-10-12 18:49:49 -04:00
parent f25f5cd368
commit 1d9e2efc33
No known key found for this signature in database

View file

@ -438,8 +438,7 @@ impl Network for Monero {
&spendable_outputs,
)
.await
.map_err(|_| NetworkError::ConnectionError)
.unwrap();
.map_err(|_| NetworkError::ConnectionError)?;
let inputs = spendable_outputs.into_iter().zip(decoys).collect::<Vec<_>>();