From 8021187a79e737d60dfaa6fa461a1eac663fbe6a Mon Sep 17 00:00:00 2001 From: CodeSandwich Date: Mon, 17 Jun 2019 10:04:58 +0200 Subject: [PATCH] Increase logger async buffer from 128 to 1024 entries --- jormungandr/src/log/asyncable_drain.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jormungandr/src/log/asyncable_drain.rs b/jormungandr/src/log/asyncable_drain.rs index 46ea4f8a8f..02149ab5e2 100644 --- a/jormungandr/src/log/asyncable_drain.rs +++ b/jormungandr/src/log/asyncable_drain.rs @@ -9,11 +9,13 @@ where fn async(self) -> Async; } +const EVENT_BUFFER_SIZE: usize = 1024; + impl 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() } }