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

Commit

Permalink
more steps
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Oct 22, 2020
1 parent 343cc42 commit 47c9fe9
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions node/core/provisioner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ use polkadot_primitives::v1::{
SignedAvailabilityBitfield,
};
use std::{collections::HashMap, convert::TryFrom, pin::Pin};
use thiserror::Error;

struct ProvisioningJob {
relay_parent: Hash,
Expand Down Expand Up @@ -115,18 +116,24 @@ impl TryFrom<AllMessages> for FromJob {
}
}

#[derive(Debug, derive_more::From)]
#[derive(Debug, Error)]
enum Error {
#[from]
#[error(transparent)]
Sending(mpsc::SendError),
#[from]

#[error(transparent)]
Util(util::Error),
#[from]

#[error(transparent)]
OneshotRecv(oneshot::Canceled),
#[from]

#[error(transparent)]
ChainApi(ChainApiError),
#[from]

#[error(transparent)]
Runtime(RuntimeApiError),

#[error("Oneshot send failed")]
OneshotSend,
}

Expand Down

0 comments on commit 47c9fe9

Please sign in to comment.