From 33765d54683d49dbb4f8a529030c0dbfa878c2f2 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 17 Jun 2025 23:42:24 -0500 Subject: [PATCH] server fix --- client/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/main.rs b/client/src/main.rs index 03db65a..4e9eb2e 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -37,7 +37,8 @@ async fn main() -> Result<()> { // file → non‑blocking writer (+ guard) let file = OpenOptions::new() .create(true) - .append(true) + .write(true) + .truncate(true) .open(&log_path)?; let (file_writer, guard) = non_blocking(file); _guard = Some(guard);