Skip to content

Commit 0b5d535

Browse files
committed
Test sending ok afterwards
1 parent ef7a108 commit 0b5d535

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

crates/storage/store_db/rocksdb.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ impl Store {
681681
trie_mut.put_batch(parent_state_root, child_state_root, new_layer);
682682
*trie_cache.lock().map_err(|_| StoreError::LockError)? = Arc::new(trie_mut);
683683
// Update finished, signal block production.
684-
notify.send(Ok(())).map_err(|_| StoreError::LockError)?;
684+
// notify.send(Ok(())).map_err(|_| StoreError::LockError)?;
685685

686686
// Phase 2: update disk layer.
687687
let trie = trie_cache
@@ -728,6 +728,8 @@ impl Store {
728728
result?;
729729
// Phase 3: update diff layers with the removal of bottom layer.
730730
*trie_cache.lock().map_err(|_| StoreError::LockError)? = Arc::new(trie_mut);
731+
732+
notify.send(Ok(())).map_err(|_| StoreError::LockError)?;
731733
Ok(())
732734
}
733735
}

0 commit comments

Comments
 (0)