From b2b830164defc13cb498ba64b1529b4b7f5f1da5 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 5 Aug 2020 11:11:49 -0700 Subject: fatcat export: flush after batch, not per-line Good catch, thanks Martin --- rust/src/bin/fatcat-export.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(()) -- cgit v1.2.3