Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
rename Runtime2 to something sane
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Feb 3, 2022
1 parent a64f728 commit adc568d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions node/core/dispute-coordinator/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub enum Error {

/// Errors coming from runtime::Runtime.
#[error("Error while accessing runtime information: {0}")]
Runtime2(#[from] runtime::JfyiError),
Runtime(#[from] runtime::JfyiError),

#[error(transparent)]
QueueError(#[from] participation::QueueError),
Expand All @@ -123,7 +123,7 @@ impl JfyiError {
pub fn log(self) {
match self {
// don't spam the log with spurious errors
Self::Runtime2(_) | Self::Oneshot(_) => {
Self::Runtime(_) | Self::Oneshot(_) => {
tracing::debug!(target: LOG_TARGET, error = ?self)
},
// it's worth reporting otherwise
Expand Down
2 changes: 1 addition & 1 deletion node/core/dispute-coordinator/src/real/ordering/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ impl OrderingProvider {
.map_err(|err| -> crate::error::Error {
match err.split() {
// will be remedied as soon as `split` is comatibe with `defer` in `fatality`.
Ok(jfyi) => crate::error::JfyiError::Runtime2(jfyi).into(),
Ok(jfyi) => crate::error::JfyiError::Runtime(jfyi).into(),
Err(fatal) => crate::error::FatalError::RuntimeApi(fatal).into(),
}
})?
Expand Down

0 comments on commit adc568d

Please sign in to comment.