diff --git a/src/file_pipe_log/log_file.rs b/src/file_pipe_log/log_file.rs index 7fd28268..45ed1c03 100644 --- a/src/file_pipe_log/log_file.rs +++ b/src/file_pipe_log/log_file.rs @@ -83,7 +83,9 @@ impl LogFileWriter { pub fn truncate(&mut self) -> Result<()> { if self.written < self.capacity { - fail_point!("file_pipe_log::log_file_writer::skip_truncate", |_| {}); + fail_point!("file_pipe_log::log_file_writer::skip_truncate", |_| { + Ok(()) + }); // Panic if truncate fails, in case of data loss. self.writer.truncate(self.written)?; self.capacity = self.written;