Skip to content

Commit

Permalink
Merge pull request input-output-hk#509 from input-output-hk/logger_bu…
Browse files Browse the repository at this point in the history
…ffer

Increase logger async buffer from 128 to 1024 entries
  • Loading branch information
Mikhail Zabaluev authored Jun 17, 2019
2 parents 3b2abc6 + 8021187 commit 67434b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jormungandr/src/log/asyncable_drain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ where
fn async(self) -> Async;
}

const EVENT_BUFFER_SIZE: usize = 1024;

impl<D: Drain + Send + 'static> AsyncableDrain for D
where
D::Err: Debug,
{
fn async(self) -> Async {
Async::default(self.fuse())
Async::new(self.fuse()).chan_size(EVENT_BUFFER_SIZE).build()
}
}

0 comments on commit 67434b6

Please sign in to comment.