use ahash
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending approval

This commit is contained in:
Mylloon 2024-04-01 17:45:33 +02:00
parent 05185f48e9
commit eb80fbdef5
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 1 additions and 4 deletions

View file

@ -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"] }

View file

@ -47,7 +47,6 @@ fn compile_patterns(exclusion_list: Vec<String>) -> Vec<Regex> {
.collect()
}
// #[once(time = 240)]
fn get_filetree(dir_path: &str, exclusion_patterns: &Vec<Regex>) -> 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<PathRequest>, config: Config) -> String {
let cours_dir = "data/cours";
let exclusion_list = config.fc.exclude_courses.unwrap();