From 5d27f211d64463f543e67edcbe36cf742c93f8d6 Mon Sep 17 00:00:00 2001 From: "zhuxiujia@qq.com" Date: Sat, 25 Sep 2021 13:19:56 +0800 Subject: [PATCH] opt performance --- Cargo.toml | 2 +- src/fast_log.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 91a01a3..1b74ebc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ members = [ [package] name = "fast_log" -version = "1.3.28" +version = "1.3.29" description = "Rust async log High-performance asynchronous logging" readme = "Readme.md" authors = ["ce "] diff --git a/src/fast_log.rs b/src/fast_log.rs index 566f30c..b031e0f 100644 --- a/src/fast_log.rs +++ b/src/fast_log.rs @@ -189,7 +189,7 @@ pub fn init_custom_log( let mut recvs = vec![]; let mut sends = vec![]; for idx in 0..appenders.len() { - let (s, r) = crossbeam_channel::unbounded(); + let (s, r) = crossbeam_channel::bounded(log_cup*10); recvs.push(r); sends.push(s); }