From 5ac92ec126979f5d6b2347df71b0ee4732e7e5c2 Mon Sep 17 00:00:00 2001 From: Stan Bondi Date: Thu, 3 Oct 2024 16:44:16 +0400 Subject: [PATCH] lints --- base_layer/wallet_ffi/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/base_layer/wallet_ffi/src/lib.rs b/base_layer/wallet_ffi/src/lib.rs index 2863b7d088..47d11ee255 100644 --- a/base_layer/wallet_ffi/src/lib.rs +++ b/base_layer/wallet_ffi/src/lib.rs @@ -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();