Skip to content

Commit

Permalink
apply review suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Nazar Mokrynskyi <[email protected]>
  • Loading branch information
ParthDesai and nazar-pc authored Dec 1, 2023
1 parent c760302 commit a54f2df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions substrate/primitives/trie/src/recorder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ impl<H: Hasher> Recorder<H> {
///
/// There are multiple tries when working with e.g. child tries.
pub fn recorded_keys(&self) -> HashMap<<H as Hasher>::Out, HashMap<Arc<[u8]>, RecordedForKey>> {
let inner = self.inner.lock();
inner.recorded_keys.clone()
self.inner.lock().recorded_keys.clone()
}

/// Returns the recorder as [`TrieRecorder`](trie_db::TrieRecorder) compatible type.
Expand Down

0 comments on commit a54f2df

Please sign in to comment.