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

Method task_priority

crates/consensus/engine/src/task_queue/tasks/task.rs:148–155  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

146 }
147
148 const fn task_priority(&self) -> u8 {
149 match self {
150 Self::Seal(_) => 4,
151 Self::Insert(_) => 3,
152 Self::Consolidate(_) => 2,
153 Self::Finalize(_) => 1,
154 }
155 }
156}
157
158impl<EngineClient_: EngineClient> PartialEq for EngineTask<EngineClient_> {

Callers 1

cmpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected