mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-30 22:08:57 -07:00
Refactor record deletion to use FileKind
This commit is contained in:
committed by
Markus Unterwaditzer
parent
7aaa7e589e
commit
4bad8356ac
@@ -359,8 +359,14 @@ pub async fn get_zip(
|
||||
let result: Result<(), Error> = async {
|
||||
let mut zip = ZipFileWriter::with_tokio(writer);
|
||||
|
||||
const EXCLUDED_FROM_ZIP: &[FileKind] = &[FileKind::Analysis];
|
||||
|
||||
// Add stored files
|
||||
for &file_kind in FileKind::ALL {
|
||||
if EXCLUDED_FROM_ZIP.contains(&file_kind) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let file_opt = {
|
||||
let qmdl_store = qmdl_store_lock.read().await;
|
||||
qmdl_store.open_file(entry_index, file_kind).await?
|
||||
|
||||
Reference in New Issue
Block a user