From 54ba1a0ce0def1c0c0dfb1f38358db268fdf05d6 Mon Sep 17 00:00:00 2001 From: Petr Tsopa Date: Sat, 12 Oct 2024 21:49:33 +0300 Subject: [PATCH] fix auto update --- launcher/src/launcher/update.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/src/launcher/update.rs b/launcher/src/launcher/update.rs index c5d3607..bf9b693 100644 --- a/launcher/src/launcher/update.rs +++ b/launcher/src/launcher/update.rs @@ -50,9 +50,9 @@ pub enum UpdateError { } async fn fetch_new_version() -> Result> { - if let Some(update_url) = &*UPDATE_URL { + if let Some(version_url) = &*VERSION_URL { let client = Client::new(); - let response = client.get(update_url).send().await?.error_for_status()?; + let response = client.get(version_url).send().await?.error_for_status()?; let text = response.text().await?; Ok(text.trim().to_string()) } else {