Skip to content

Commit 1f4319a

Browse files
committed
f LDK: Account for RpcClient::new being infallible
1 parent 7dde7be commit 1f4319a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/chain/bitcoind_rpc.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ impl BitcoindRpcClient {
3838
let rpc_credentials =
3939
BASE64_STANDARD.encode(format!("{}:{}", rpc_user.clone(), rpc_password.clone()));
4040

41-
let rpc_client = Arc::new(
42-
RpcClient::new(&rpc_credentials, http_endpoint)
43-
.expect("RpcClient::new is actually infallible"),
44-
);
41+
let rpc_client = Arc::new(RpcClient::new(&rpc_credentials, http_endpoint));
4542

4643
let latest_mempool_timestamp = AtomicU64::new(0);
4744

0 commit comments

Comments
 (0)