Skip to content

Commit

Permalink
fix beta compiler compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
realbigsean committed Apr 29, 2024
1 parent 40d4126 commit 23152cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions common/logging/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,12 @@ pub fn create_tracing_layer(base_tracing_log_path: PathBuf) {
return;
};

let (libp2p_non_blocking_writer, libp2p_guard) = NonBlocking::new(libp2p_writer);
let (discv5_non_blocking_writer, discv5_guard) = NonBlocking::new(discv5_writer);
let (libp2p_non_blocking_writer, _) = NonBlocking::new(libp2p_writer);
let (discv5_non_blocking_writer, _) = NonBlocking::new(discv5_writer);

let custom_layer = LoggingLayer {
libp2p_non_blocking_writer,
libp2p_guard,
discv5_non_blocking_writer,
discv5_guard,
};

if let Err(e) = tracing_subscriber::fmt()
Expand Down
2 changes: 0 additions & 2 deletions common/logging/src/tracing_logging_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ use tracing_subscriber::Layer;

pub struct LoggingLayer {
pub libp2p_non_blocking_writer: NonBlocking,
pub libp2p_guard: WorkerGuard,
pub discv5_non_blocking_writer: NonBlocking,
pub discv5_guard: WorkerGuard,
}

impl<S> Layer<S> for LoggingLayer
Expand Down

0 comments on commit 23152cf

Please sign in to comment.