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

Method execute_inner

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

Executes the task without consuming it.

(&self, state: &mut EngineState)

Source from the content-addressed store, hash-verified

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

Callers 1

executeMethod · 0.80

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected