From 7a963879140c7933f6f737ce4b908697708f7e91 Mon Sep 17 00:00:00 2001 From: Jerry <1032246642@qq.com> Date: Thu, 4 Nov 2021 10:36:13 +0800 Subject: [PATCH] reset consumer --- storage-proofs-porep/src/stacked/vanilla/memory_handling.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/storage-proofs-porep/src/stacked/vanilla/memory_handling.rs b/storage-proofs-porep/src/stacked/vanilla/memory_handling.rs index 8556414c7..5d3b1d0e6 100644 --- a/storage-proofs-porep/src/stacked/vanilla/memory_handling.rs +++ b/storage-proofs-porep/src/stacked/vanilla/memory_handling.rs @@ -183,6 +183,7 @@ impl CacheReader { let bufs = unsafe { self.get_mut_bufs() }; bufs[1] = buf1; self.cursor.store(0); + self.store_consumer(0); Ok(()) }