fix double call of setup in v1 proxy

This commit is contained in:
Maple 2026-01-31 17:24:11 +01:00
commit 1cd8f192bb
2 changed files with 1 additions and 3 deletions

View file

@ -23,8 +23,6 @@ use tokio::task;
use tokio::time::sleep;
pub async fn start() {
setup();
let conn = tokio::net::TcpStream::connect(&*EDGE_NODE_HOLDER)
.await
.unwrap();

View file

@ -15,7 +15,7 @@ use tokio::net::TcpStream;
pub static FORWARD_EDGE_NODE_HOLDER: Lazy<SocketAddrV4> = Lazy::new(|| {
env::var("FORWARD_EDGE_NODE_HOLDER")
.ok()
.and_then(|s| s.parse().ok())
.and_then(|s| Some(s.parse().unwrap()))
.expect("FORWARD_EDGE_NODE_HOLDER not set")
});