WIP: network: implement basic ratelimiting #1

Draft
NotAShelf wants to merge 16 commits from multi-site-proxy into main
Showing only changes of commit d1af86078e - Show all commits

markov: shut up clippy

raf 2025-05-02 07:22:22 +03:00
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -103,7 +103,7 @@ impl MarkovGenerator {
let path = Path::new(corpus_dir);
if path.exists() && path.is_dir() {
if let Ok(entries) = fs::read_dir(path) {
for entry in entries {
entries.for_each(|entry| {
if let Ok(entry) = entry {
let file_path = entry.path();
if let Some(file_name) = file_path.file_stem() {
@ -120,7 +120,7 @@ impl MarkovGenerator {
}
}
}
}
});
}
}