From eb80fbdef51eea8114fed76c4026d8f8b0676153 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 1 Apr 2024 17:45:33 +0200 Subject: [PATCH] use ahash --- Cargo.toml | 2 +- src/routes/cours.rs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 42bdfd2..6a3d875 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ license = "AGPL-3.0-or-later" [dependencies] actix-web = { version = "4.5", default-features = false, features = ["macros", "compress-brotli"] } actix-files = "0.6" -cached = { version = "0.49", features = ["async"] } +cached = { version = "0.49", features = ["async", "ahash"] } ramhorns = "1.0" toml = "0.8" serde = { version = "1.0", features = ["derive"] } diff --git a/src/routes/cours.rs b/src/routes/cours.rs index bc3120b..29d8a12 100644 --- a/src/routes/cours.rs +++ b/src/routes/cours.rs @@ -47,7 +47,6 @@ fn compile_patterns(exclusion_list: Vec) -> Vec { .collect() } -// #[once(time = 240)] fn get_filetree(dir_path: &str, exclusion_patterns: &Vec) -> FileNode { let children = std::fs::read_dir(dir_path) .unwrap() @@ -116,8 +115,6 @@ fn get_content( ) } -// TODO: Uncomment before release -// #[once(time = 60)] fn build_page(info: web::Query, config: Config) -> String { let cours_dir = "data/cours"; let exclusion_list = config.fc.exclude_courses.unwrap();