File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -10,24 +10,12 @@ use crate::robust_provider::Error as RobustProviderError;
1010
1111#[ derive( Error , Debug , Clone ) ]
1212pub 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-
5436impl From < RpcError < TransportErrorKind > > for ScannerError {
5537 fn from ( error : RpcError < TransportErrorKind > ) -> Self {
5638 ScannerError :: RpcError ( Arc :: new ( error) )
You can’t perform that action at this time.
0 commit comments