Drop the Chain watch channel lock before accessing the finalized state

This commit is contained in:
teor 2022-03-15 09:01:01 +10:00
parent 74ce6e14d8
commit 8870944d13
1 changed files with 1 additions and 1 deletions

View File

@ -850,7 +850,7 @@ impl Service<Request> for ReadStateService {
async move { async move {
Ok(read::block( Ok(read::block(
state.best_chain_receiver.borrow().as_ref(), state.best_chain_receiver.borrow().clone().as_ref(),
&state.db, &state.db,
hash_or_height, hash_or_height,
)) ))