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

Method execute_inner

crates/consensus/engine/src/task_queue/tasks/task.rs:128–137  ·  view source on GitHub ↗

Executes the task without consuming it.

(&self, state: &mut EngineState)

Source from the content-addressed store, hash-verified

126impl<EngineClient_: EngineClient> EngineTask<EngineClient_> {
127 /// Executes the task without consuming it.
128 async fn execute_inner(&self, state: &mut EngineState) -> Result<(), EngineTaskErrors> {
129 match self {
130 Self::Insert(task) => task.execute(state).await?,
131 Self::Seal(task) => task.execute(state).await?,
132 Self::Consolidate(task) => task.execute(state).await?,
133 Self::Finalize(task) => task.execute(state).await?,
134 };
135
136 Ok(())
137 }
138
139 const fn task_metrics_label(&self) -> &'static str {
140 match self {

Callers 1

executeMethod · 0.80

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected