(&self)
| 44 | |
| 45 | impl EngineTaskError for InsertTaskError { |
| 46 | fn severity(&self) -> EngineTaskErrorSeverity { |
| 47 | match self { |
| 48 | Self::EmptyAuthoritativePayloads |
| 49 | | Self::FromBlockError(_) |
| 50 | | Self::L2BlockInfoConstruction(_) |
| 51 | | Self::InvalidBaseTimeSchedule(_) => EngineTaskErrorSeverity::Critical, |
| 52 | Self::InsertFailed(_) |
| 53 | | Self::UnexpectedPayloadStatus(_) |
| 54 | | Self::ForkchoiceUpdateDidNotApply => EngineTaskErrorSeverity::Temporary, |
| 55 | Self::ForkchoiceUpdateFailed(inner) => inner.severity(), |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | #[cfg(test)] |
nothing calls this directly
no outgoing calls
no test coverage detected