From 25239fd475aece08fd0bdd0f40e3f7aa63bc7a96 Mon Sep 17 00:00:00 2001 From: Philip Quirk Date: Tue, 16 Jan 2024 12:04:42 -0600 Subject: [PATCH] don't fsync on every nock event while tracing --- rust/ares/src/trace.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/rust/ares/src/trace.rs b/rust/ares/src/trace.rs index d310f42..3a4fe04 100644 --- a/rust/ares/src/trace.rs +++ b/rust/ares/src/trace.rs @@ -91,7 +91,6 @@ pub fn write_metadata(info: &mut TraceInfo) -> Result<(), Error> { .write(&mut info.file)?; info.file.write_all(",\n".as_bytes())?; - info.file.sync_data()?; Ok(()) } @@ -180,7 +179,6 @@ pub unsafe fn write_nock_trace( trace_stack = (*trace_stack).next; } - info.file.sync_data()?; Ok(()) }