Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbondi committed Oct 3, 2024
1 parent ffeb16a commit 5ac92ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions base_layer/wallet_ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6063,10 +6063,7 @@ pub unsafe extern "C" fn wallet_create(
// Lets set the base node peers
let peer_manager = w.comms.peer_manager();
let query = PeerQuery::new().select_where(|p| p.is_seed());
let peers = match runtime.block_on(async { peer_manager.perform_query(query).await }) {
Ok(peers) => peers,
Err(_) => Vec::new(),
};
let peers = runtime.block_on(peer_manager.perform_query(query)).unwrap_or_default();

if !peers.is_empty() {
let selected_base_node = peers.choose(&mut OsRng).expect("base_nodes is not empty").clone();
Expand Down

0 comments on commit 5ac92ec

Please sign in to comment.