Skip to content

Commit

Permalink
chore: remove leftover Send + Sync with LogWriter
Browse files Browse the repository at this point in the history
Removes them from LogWriterConfig and new_custom_writer
  • Loading branch information
enigbe committed Jan 20, 2025
1 parent d6dde2c commit 2e9188a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl Default for LiquiditySourceConfig {
enum LogWriterConfig {
File(FilesystemLoggerConfig),
Log(LogLevel),
Custom(Arc<dyn LogWriter + Send + Sync>),
Custom(Arc<dyn LogWriter>),
}

impl std::fmt::Debug for LogWriterConfig {
Expand Down
2 changes: 1 addition & 1 deletion src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ impl Logger {
Self { writer: Writer::LogFacadeWriter { level } }
}

pub fn new_custom_writer(log_writer: Arc<dyn LogWriter + Send + Sync>) -> Self {
pub fn new_custom_writer(log_writer: Arc<dyn LogWriter>) -> Self {
Self { writer: Writer::CustomWriter(log_writer) }
}
}
Expand Down

0 comments on commit 2e9188a

Please sign in to comment.