Format mycelium-api

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet
2025-09-18 17:10:25 +02:00
parent 152ee4d297
commit a76bfc0eb3

View File

@@ -2,7 +2,7 @@
mod spec;
use std::net::{SocketAddr, Ipv6Addr};
use std::net::{Ipv6Addr, SocketAddr};
#[cfg(feature = "message")]
use std::ops::Deref;
use std::str::FromStr;
@@ -335,13 +335,7 @@ where
debug!(?remote, "Attempting to connect remote proxy via RPC");
// Attempt to connect; map error to "no proxy available/valid" like HTTP 404 counterpart
let res = self
.state
.node
.lock()
.await
.connect_proxy(remote)
.await;
let res = self.state.node.lock().await.connect_proxy(remote).await;
match res {
Ok(addr) => Ok(addr),