Skip to content

Commit

Permalink
edit recv_all
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed May 18, 2022
1 parent b5ff0c4 commit 9e09c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fast_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ pub fn init(config: Config) -> Result<&'static Logger, LogError> {
if let Ok(mut data) = data {
let mut remain;
if LOG_SENDER.recv.len() > 0 {
remain = Vec::with_capacity(LOG_SENDER.recv.len());
remain = Vec::with_capacity(LOG_SENDER.recv.len()+1);
remain.push(data);
recv_all(&mut remain,&LOG_SENDER.recv);
} else {
Expand Down

0 comments on commit 9e09c89

Please sign in to comment.