Skip to content

Commit c0a0d70

Browse files
authored
ref: Remove all unused errors (#163)
1 parent 987ba9e commit c0a0d70

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/error.rs

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

1111
#[derive(Error, Debug, Clone)]
1212
pub enum ScannerError {
13-
// #[error("WebSocket error: {0}")]
14-
// WebSocketError(#[from] tokio_tungstenite::tungstenite::Error),
15-
#[error("Serialization error: {0}")]
16-
SerializationError(Arc<serde_json::Error>),
17-
1813
#[error("RPC error: {0}")]
1914
RpcError(Arc<RpcError<TransportErrorKind>>),
2015

21-
#[error("Channel send error")]
22-
ChannelError,
23-
2416
#[error("Service is shutting down")]
2517
ServiceShutdown,
2618

27-
#[error("No subscriber set for streaming")]
28-
NoSubscriber,
29-
30-
#[error("Historical sync failed: {0}")]
31-
HistoricalSyncError(String),
32-
3319
#[error("Block not found, Block Id: {0}")]
3420
BlockNotFound(BlockId),
3521

@@ -50,12 +36,6 @@ impl From<RobustProviderError> for ScannerError {
5036
}
5137
}
5238

53-
impl From<serde_json::Error> for ScannerError {
54-
fn from(error: serde_json::Error) -> Self {
55-
ScannerError::SerializationError(Arc::new(error))
56-
}
57-
}
58-
5939
impl From<RpcError<TransportErrorKind>> for ScannerError {
6040
fn from(error: RpcError<TransportErrorKind>) -> Self {
6141
ScannerError::RpcError(Arc::new(error))

0 commit comments

Comments
 (0)