From 03a98f385c7df97d77fa7b850ba2ac86e921ad53 Mon Sep 17 00:00:00 2001 From: memdmp Date: Sun, 18 May 2025 12:53:18 +0200 Subject: fix: rename shit --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index ad15301..bd279e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -76,14 +76,14 @@ async fn fetch_url(url: hyper::Uri) -> Result> { Ok(sender.send_request(req).await?) } -fn get_request_target_uri() -> Uri { - env::var("REQUEST_TO") +fn get_space_open_request_target_uri() -> Uri { + env::var("OPEN_REQUEST_TO") .unwrap_or("http://10.0.0.77:8080/".to_string()) .parse::() .unwrap() } async fn get_is_open() -> Result { - let mut res = fetch_url(get_request_target_uri()).await?; + let mut res = fetch_url(get_space_open_request_target_uri()).await?; let mut out = "".to_string(); while let Some(next) = res.frame().await { @@ -163,8 +163,8 @@ async fn main() -> Result<()> { println!( "Listening on: LISTEN_ON={addr:#?} -Sending fetch requests to: REQUEST_TO={:#?}", - get_request_target_uri() +Sending fetch requests to: OPEN_REQUEST_TO={:#?}", + get_space_open_request_target_uri() ); // We start a loop to continuously accept incoming connections -- cgit v1.2.3