Skip to content

Commit 672e52d

Browse files
committed
refactor: remove Send + Sync from CustomWriter
1 parent 25ccbc9 commit 672e52d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

107107
impl LogWriter for Writer {

0 commit comments

Comments
 (0)