@@ -2,7 +2,6 @@ use crate::{
22 BasicProperties , Channel , ChannelState , Configuration , Connection , ConnectionProperties ,
33 ConnectionState , ConnectionStatus , Error , ErrorKind , Promise , Result ,
44 connection_closer:: ConnectionCloser ,
5- error_handler:: ErrorHandler ,
65 events:: { Events , EventsSender } ,
76 frames:: Frames ,
87 id_sequence:: IdSequence ,
@@ -32,7 +31,6 @@ pub(crate) struct Channels {
3231 internal_rpc : InternalRPCHandle ,
3332 frames : Frames ,
3433 connection_killswitch : KillSwitch ,
35- error_handler : ErrorHandler ,
3634 events : Events ,
3735 uri : AMQPUri ,
3836 options : ConnectionProperties ,
@@ -71,7 +69,6 @@ impl Channels {
7169 internal_rpc,
7270 frames,
7371 connection_killswitch : KillSwitch :: default ( ) ,
74- error_handler : ErrorHandler :: default ( ) ,
7572 events,
7673 uri,
7774 options,
@@ -188,7 +185,6 @@ impl Channels {
188185
189186 self . frames . drop_pending ( error. clone ( ) ) ;
190187 self . events . sender ( ) . error ( error. clone ( ) ) ;
191- self . error_handler . on_error ( error. clone ( ) ) ;
192188 for ( id, channel) in self . lock_inner ( ) . channels . iter ( ) {
193189 self . frames . clear_expected_replies ( * id, error. clone ( ) ) ;
194190 channel. set_connection_error ( error. clone ( ) ) ;
@@ -301,10 +297,6 @@ impl Channels {
301297 Ok ( ( ) )
302298 }
303299
304- pub ( crate ) fn set_error_handler < E : FnMut ( Error ) + Send + ' static > ( & self , handler : E ) {
305- self . error_handler . set_handler ( handler) ;
306- }
307-
308300 pub ( crate ) fn start_heartbeat ( & self ) {
309301 let heartbeat = self . configuration . heartbeat ( ) ;
310302 if heartbeat != 0 {
@@ -388,7 +380,6 @@ impl fmt::Debug for Channels {
388380 debug
389381 . field ( "frames" , & self . frames )
390382 . field ( "connection_status" , & self . connection_status )
391- . field ( "error_handler" , & self . error_handler )
392383 . finish ( )
393384 }
394385}
0 commit comments