mirror of
https://github.com/house-of-vanity/desubot.git
synced 2025-07-09 13:24:06 +00:00
Merge branch 'main' of https://github.com/house-of-vanity/desubot into main
This commit is contained in:
@ -79,7 +79,7 @@ pub(crate) async fn get_files(
|
|||||||
let file_hash = hasher.digest().to_string();
|
let file_hash = hasher.digest().to_string();
|
||||||
match db::get_file(file_hash.clone()).await {
|
match db::get_file(file_hash.clone()).await {
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
println!("File exist");
|
info!("File {} exist", file_hash);
|
||||||
}
|
}
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
let mut dest = File::create(path.clone())?;
|
let mut dest = File::create(path.clone())?;
|
||||||
@ -88,7 +88,7 @@ pub(crate) async fn get_files(
|
|||||||
};
|
};
|
||||||
db::add_file(&message, path, file_hash).await?;
|
db::add_file(&message, path, file_hash).await?;
|
||||||
}
|
}
|
||||||
Err(e) => println!("Couldn't get file: {}", e)
|
Err(e) => warn!("Couldn't get file: {}", e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user