perf(cli): use LineWriter for stdout to improve output responsiveness

Switch from BufWriter to LineWriter to ensure trace logs and events are flushed to the terminal immediately upon each line completion.
This commit is contained in:
Nils Andreas Svee committed 2026-04-28 23:15:54 +07:00
1 parent d4d39922b0
commit 729d884047
1 file changed
+1 -1
+1 -1
View File
@@ -28,7 +28,7 @@ fn main() -> ExitCode {
fn run(args: CliArgs) -> Result<(), Box<dyn std::error::Error>> {
let mode = args.output;
let mut stdout = io::BufWriter::new(io::stdout().lock());
let mut stdout = io::LineWriter::new(io::stdout().lock());
let mut client = Client::connect(args.to_client_config())?;
let open = client.open(ClientTimestamp::now())?;