diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-08-05 11:11:49 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-08-05 11:11:51 -0700 |
commit | b2b830164defc13cb498ba64b1529b4b7f5f1da5 (patch) | |
tree | b727b36bf5a1869f43986823b5910c3229cda526 | |
parent | 4afefd1f2d5cfe71fa7a52ff89aec63af632c874 (diff) | |
download | fatcat-b2b830164defc13cb498ba64b1529b4b7f5f1da5.tar.gz fatcat-b2b830164defc13cb498ba64b1529b4b7f5f1da5.zip |
fatcat export: flush after batch, not per-line
Good catch, thanks Martin
-rw-r--r-- | rust/src/bin/fatcat-export.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/bin/fatcat-export.rs b/rust/src/bin/fatcat-export.rs index 3cc0c7a8..7d671b9a 100644 --- a/rust/src/bin/fatcat-export.rs +++ b/rust/src/bin/fatcat-export.rs @@ -151,8 +151,8 @@ fn loop_batch_printer( for line in batch { buf_output.write_all(&line.into_bytes())?; buf_output.write_all(b"\n")?; - buf_output.flush()?; } + buf_output.flush()?; } drop(done_sender); Ok(()) |