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

Method lock_live_state

crates/execution/flashblocks/src/processor.rs:79–81  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

77 + 'static,
78{
79 fn lock_live_state(&self) -> StdMutexGuard<'_, Option<LivePendingState>> {
80 self.live_state.lock().unwrap_or_else(|poisoned| poisoned.into_inner())
81 }
82
83 fn clear_live_state(&self) {
84 *self.lock_live_state() = None;

Calls 2

lockMethod · 0.80
into_innerMethod · 0.45

Tested by

no test coverage detected