fix the janitord bug (#3)

This commit is contained in:
blek 2023-10-27 00:28:33 +10:00
parent 8400272af7
commit 0efb0f5771
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ async fn check_key(key: String, mut client: redis::Client) -> bool {
}
pub async fn check_file(file: String, keys: Vec<String>, prefix: String) -> Result<bool, String> {
if ! keys.iter().find(|x| x.chars().skip(prefix.len() + 4 + 2).collect::<String>() == file).is_none() {
if keys.iter().find(|x| x.chars().skip(prefix.len() + 4 + 2).collect::<String>() == file).is_none() {
#[cfg(debug_assertions)] {
log::debug!("File {file} is marked for deletion because it exists in the filesystem, but is not in the database");
}