drop poh lock after record (#15930)

This commit is contained in:
Jeff Washington (jwash) 2021-03-17 10:37:20 -05:00 committed by GitHub
parent d370b5a4d2
commit 5460fb10a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -443,6 +443,7 @@ impl PohRecorder {
self.record_lock_contention_us += timing::duration_as_us(&now.elapsed());
let now = Instant::now();
let res = poh_lock.record(mixin);
drop(poh_lock);
self.record_us += timing::duration_as_us(&now.elapsed());
if let Some(poh_entry) = res {
let entry = Entry {