From 13fb5ce974caddf21168d44e122fd4c5dc31c388 Mon Sep 17 00:00:00 2001 From: funilrys Date: Sat, 3 Dec 2022 19:03:01 +0100 Subject: [PATCH] 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. --- dump/src/reader/v5/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dump/src/reader/v5/mod.rs b/dump/src/reader/v5/mod.rs index 77efc7a81..71a3c87a7 100644 --- a/dump/src/reader/v5/mod.rs +++ b/dump/src/reader/v5/mod.rs @@ -142,7 +142,7 @@ impl V5Reader { V5IndexReader::new( index.uid.clone(), &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()), ) })) }