Skip to content

Commit

Permalink
rename code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Sep 22, 2023
1 parent 4426437 commit bfdfef0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fast_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ pub fn init(config: Config) -> Result<&'static Logger, LogError> {
.map(|()| log::set_max_level(LOGGER.cfg.get().unwrap().level))
.map_err(|e| LogError::from(e))?;

let mut recever_vec = vec![];
let mut receiver_vec = vec![];
let mut sender_vec: Vec<Sender<Arc<Vec<FastLogRecord>>>> = vec![];
let cfg = LOGGER.cfg.get().unwrap();
for a in cfg.appends.iter() {
let (s, r) = chan(cfg.chan_len);
sender_vec.push(s);
recever_vec.push((r, a));
receiver_vec.push((r, a));
}
for (receiver, appender) in recever_vec {
for (receiver, appender) in receiver_vec {
spawn(move || {
let mut exit = false;
loop {
Expand Down

0 comments on commit bfdfef0

Please sign in to comment.