@@ -10,26 +10,12 @@ use crate::robust_provider::Error as RobustProviderError;
1010
1111#[ derive( Error , Debug , Clone ) ]
1212pub 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-
5939impl From < RpcError < TransportErrorKind > > for ScannerError {
6040 fn from ( error : RpcError < TransportErrorKind > ) -> Self {
6141 ScannerError :: RpcError ( Arc :: new ( error) )
0 commit comments