MCPcopy Create free account
hub / github.com/base/base / lock

Method lock

crates/consensus/protocol/src/test_utils.rs:104–106  ·  view source on GitHub ↗

Locks the storage and returns the collected traces.

(&self)

Source from the content-addressed store, hash-verified

102
103 /// Locks the storage and returns the collected traces.
104 pub fn lock(&self) -> spin::MutexGuard<'_, Vec<(Level, String)>> {
105 self.0.lock()
106 }
107
108 /// Returns if the storage is empty.
109 pub fn is_empty(&self) -> bool {

Callers 15

set_leaderMethod · 0.80
clear_leaderMethod · 0.80
committed_countMethod · 0.80
committed_payloadsMethod · 0.80
committed_byMethod · 0.80
leaderMethod · 0.80
commit_unsafe_payloadMethod · 0.80
storage_atMethod · 0.80
receipts_atMethod · 0.80
has_codeMethod · 0.80
execute_from_attrsMethod · 0.80
get_l2_blockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected