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

Commit 47c9fe9

Browse files
committed
more steps
1 parent 343cc42 commit 47c9fe9

File tree

1 file changed

+13
-6
lines changed
  • node/core/provisioner/src

1 file changed

+13
-6
lines changed

node/core/provisioner/src/lib.rs

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ use polkadot_primitives::v1::{
4242
SignedAvailabilityBitfield,
4343
};
4444
use std::{collections::HashMap, convert::TryFrom, pin::Pin};
45+
use thiserror::Error;
4546

4647
struct ProvisioningJob {
4748
relay_parent: Hash,
@@ -115,18 +116,24 @@ impl TryFrom<AllMessages> for FromJob {
115116
}
116117
}
117118

118-
#[derive(Debug, derive_more::From)]
119+
#[derive(Debug, Error)]
119120
enum Error {
120-
#[from]
121+
#[error(transparent)]
121122
Sending(mpsc::SendError),
122-
#[from]
123+
124+
#[error(transparent)]
123125
Util(util::Error),
124-
#[from]
126+
127+
#[error(transparent)]
125128
OneshotRecv(oneshot::Canceled),
126-
#[from]
129+
130+
#[error(transparent)]
127131
ChainApi(ChainApiError),
128-
#[from]
132+
133+
#[error(transparent)]
129134
Runtime(RuntimeApiError),
135+
136+
#[error("Oneshot send failed")]
130137
OneshotSend,
131138
}
132139

0 commit comments

Comments
 (0)