Skip to content

Commit

Permalink
Don't unwrap result of call which makes network requests
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Oct 12, 2023
1 parent f25f5cd commit 1d9e2ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions processor/src/networks/monero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<_>>();

Expand Down

0 comments on commit 1d9e2ef

Please sign in to comment.