Re-Open tasks list when needed.

Indeed, before this patch we were using the reference instead of
"reopening" the task list each time we needed to access it.
Without this patch, all other usage of the task attribute will
break.
This commit is contained in:
funilrys 2022-12-03 19:03:01 +01:00
parent a43a0712fa
commit 13fb5ce974
No known key found for this signature in database
GPG Key ID: 0D8BFEF5515C00C6

View File

@ -142,7 +142,7 @@ impl V5Reader {
V5IndexReader::new( V5IndexReader::new(
index.uid.clone(), index.uid.clone(),
&self.dump.path().join("indexes").join(index.index_meta.uuid.to_string()), &self.dump.path().join("indexes").join(index.index_meta.uuid.to_string()),
BufReader::new(self.tasks.get_ref().try_clone().unwrap()), BufReader::new(File::open(&self.dump.path().join("updates").join("data.jsonl")).unwrap()),
) )
})) }))
} }