From c7257c3a6fea8e47a0906874f209921e6dfaeac4 Mon Sep 17 00:00:00 2001 From: ryardley Date: Mon, 25 Nov 2024 16:45:03 +0700 Subject: [PATCH] Remove expect --- packages/ciphernode/enclave_node/src/ciphernode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ciphernode/enclave_node/src/ciphernode.rs b/packages/ciphernode/enclave_node/src/ciphernode.rs index c21f180b..6cbce881 100644 --- a/packages/ciphernode/enclave_node/src/ciphernode.rs +++ b/packages/ciphernode/enclave_node/src/ciphernode.rs @@ -72,7 +72,7 @@ pub async fn setup_ciphernode( .await?; let (_, join_handle, peer_id) = - NetworkRelay::setup_with_peer(bus.clone(), config.peers()).expect("Failed to setup libp2p"); + NetworkRelay::setup_with_peer(bus.clone(), config.peers())?; let nm = format!("CIPHER({})", &address.to_string()[0..5]); SimpleLogger::attach(&nm, bus.clone());