File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -542,7 +542,7 @@ impl<N: Network> Service<N> {
542542 }
543543 Err ( e) => {
544544 error ! ( error = %e, "Terminal RPC call error, shutting down" ) ;
545- _ = sender. try_stream ( ScannerError :: from ( e ) ) . await ;
545+ _ = sender. try_stream ( e ) . await ;
546546 return ;
547547 }
548548 } ;
Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ async fn handle_block_range<N: Network>(
246246 }
247247 Err ( e) => {
248248 error ! ( error = ?e, "Received error message" ) ;
249- if !sender. try_stream ( ScannerError :: from ( e ) ) . await {
249+ if !sender. try_stream ( e ) . await {
250250 return false ;
251251 }
252252 }
Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ impl<T: Clone> IntoScannerMessageResult<T> for ScannerMessage<T> {
4949 }
5050}
5151
52- impl < T : Clone > IntoScannerMessageResult < T > for ScannerError {
52+ impl < T : Clone , E : Into < ScannerError > > IntoScannerMessageResult < T > for E {
5353 fn into_scanner_message_result ( self ) -> Result < ScannerMessage < T > , ScannerError > {
54- Err ( self )
54+ Err ( self . into ( ) )
5555 }
5656}
5757
You can’t perform that action at this time.
0 commit comments