From 088cd594a5173b101ecc8e4d2a22a4957dc2d2b6 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sun, 31 Mar 2024 00:45:29 -0500 Subject: [PATCH] chg: Change the env_var name --- actix/src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix/src/utils.rs b/actix/src/utils.rs index a7791dc..9236f10 100644 --- a/actix/src/utils.rs +++ b/actix/src/utils.rs @@ -28,8 +28,8 @@ pub fn add_link(req: String, db: &Connection) -> (bool, String) { let chunks: Vec<&str> = req.split(';').collect(); let longlink = String::from(chunks[0]); - let style = env::var("slug-style").unwrap_or(String::from("pair")); - let len_str = env::var("slug-length").unwrap_or(String::from("8")); + let style = env::var("slug_style").unwrap_or(String::from("pair")); + let len_str = env::var("slug_length").unwrap_or(String::from("8")); let mut len: usize = len_str.parse().unwrap_or(8); if len < 4 { len = 4;