Browse Source

swaps LineWriter for BufWriter

master
Jonathan Strong 6 years ago
parent
commit
980af7417c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/hist.rs

+ 1
- 1
src/hist.rs View File

@@ -103,7 +103,7 @@ impl HistLog {
let path = dir.join(&format!("{}-interval-log-{}.v2z", series, seconds));
let file = fs::File::create(&path).unwrap();
thread::Builder::new().name(format!("HistLog::scribe::{}", series)).spawn(move || {
let mut buf = io::BufWriter::new(file);
let mut buf = io::LineWriter::new(file);
let mut wtr =
IntervalLogWriterBuilder::new()
.with_base_time(UNIX_EPOCH)


Loading…
Cancel
Save