File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ impl NodeBuilder {
346346 }
347347
348348 /// Configures the [`Node`] instance to write logs to the provided custom log writer.
349- pub fn set_custom_logger ( & mut self , log_writer : Arc < dyn LogWriter + Send + Sync > ) -> & mut Self {
349+ pub fn set_custom_logger ( & mut self , log_writer : Arc < dyn LogWriter > ) -> & mut Self {
350350 self . log_writer_config = Some ( LogWriterConfig :: Custom ( log_writer) ) ;
351351 self
352352 }
@@ -666,7 +666,7 @@ impl ArcedNodeBuilder {
666666 }
667667
668668 /// Configures the [`Node`] instance to write logs to the provided custom log writer.
669- pub fn set_custom_logger ( & self , log_writer : Arc < dyn LogWriter + Send + Sync > ) {
669+ pub fn set_custom_logger ( & self , log_writer : Arc < dyn LogWriter > ) {
670670 self . inner . write ( ) . unwrap ( ) . set_custom_logger ( log_writer) ;
671671 }
672672
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ pub(crate) enum Writer {
101101 /// Forwards logs to the `log` facade.
102102 LogFacadeWriter { level : LogLevel } ,
103103 /// Forwards logs to a custom writer.
104- CustomWriter ( Arc < dyn LogWriter + Send + Sync > ) ,
104+ CustomWriter ( Arc < dyn LogWriter > ) ,
105105}
106106
107107impl LogWriter for Writer {
You can’t perform that action at this time.
0 commit comments