relay-chain-interface: Do not depend on polkadot-service (#2287)

This commit is contained in:
Bastian Köcher
2023-03-07 15:17:05 +01:00
committed by GitHub
parent 4831e96de8
commit d17fbba4e4
8 changed files with 17 additions and 33 deletions
@@ -17,7 +17,6 @@
use std::{collections::BTreeMap, pin::Pin, sync::Arc};
use polkadot_overseer::prometheus::PrometheusError;
use polkadot_service::SubstrateServiceError;
use sc_client_api::StorageProof;
use futures::Stream;
@@ -61,10 +60,8 @@ pub enum RelayChainError {
WorkerCommunicationError(String),
#[error("Scale codec deserialization error: {0}")]
DeserializationError(CodecError),
#[error("Polkadot service error: {0}")]
ServiceError(#[from] polkadot_service::Error),
#[error("Substrate service error: {0}")]
SubServiceError(#[from] SubstrateServiceError),
#[error(transparent)]
Application(#[from] Box<dyn std::error::Error + Send + Sync + 'static>),
#[error("Prometheus error: {0}")]
PrometheusError(#[from] PrometheusError),
#[error("Unspecified error occured: {0}")]