Skip to content

Commit

Permalink
优化代码结构
Browse files Browse the repository at this point in the history
  • Loading branch information
eric committed Apr 21, 2024
1 parent b3d8c56 commit 2afd5d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ncbi/src/fna.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ pub async fn write_to_fna(

for (gz_path, taxid) in gz_files {
let gz_file = data_dir.join(gz_path);
if !gz_file.exists() {
continue;
}

let file = File::open(gz_file).await?;
let decompressor = GzipDecoder::new(BufReader::new(file));
let mut reader = BufReader::new(decompressor);
Expand Down

0 comments on commit 2afd5d2

Please sign in to comment.