Skip to content

Commit a24ba66

Browse files
committed
Merge branch 'main' into multiple-providers
2 parents fbec4a8 + c0a0d70 commit a24ba66

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/error.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,12 @@ use crate::robust_provider::Error as RobustProviderError;
1010

1111
#[derive(Error, Debug, Clone)]
1212
pub enum ScannerError {
13-
#[error("Serialization error: {0}")]
14-
SerializationError(Arc<serde_json::Error>),
15-
1613
#[error("RPC error: {0}")]
1714
RpcError(Arc<RpcError<TransportErrorKind>>),
1815

19-
#[error("Channel send error")]
20-
ChannelError,
21-
2216
#[error("Service is shutting down")]
2317
ServiceShutdown,
2418

25-
#[error("No subscriber set for streaming")]
26-
NoSubscriber,
27-
28-
#[error("Historical sync failed: {0}")]
29-
HistoricalSyncError(String),
30-
3119
#[error("Block not found, Block Id: {0}")]
3220
BlockNotFound(BlockId),
3321

@@ -45,12 +33,6 @@ impl From<RobustProviderError> for ScannerError {
4533
}
4634
}
4735

48-
impl From<serde_json::Error> for ScannerError {
49-
fn from(error: serde_json::Error) -> Self {
50-
ScannerError::SerializationError(Arc::new(error))
51-
}
52-
}
53-
5436
impl From<RpcError<TransportErrorKind>> for ScannerError {
5537
fn from(error: RpcError<TransportErrorKind>) -> Self {
5638
ScannerError::RpcError(Arc::new(error))

0 commit comments

Comments
 (0)