From 52209200056804340b2fd79560347d9a92e998fa Mon Sep 17 00:00:00 2001 From: Ahrav Dutta Date: Wed, 17 Jan 2024 15:50:19 -0800 Subject: [PATCH] update comment --- pkg/writers/buffered_file_writer/bufferedfilewriter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/writers/buffered_file_writer/bufferedfilewriter.go b/pkg/writers/buffered_file_writer/bufferedfilewriter.go index 8239bcbd51c0..292af333b6f0 100644 --- a/pkg/writers/buffered_file_writer/bufferedfilewriter.go +++ b/pkg/writers/buffered_file_writer/bufferedfilewriter.go @@ -53,7 +53,7 @@ func (w *BufferedFileWriter) Write(ctx context.Context, p []byte) (int, error) { } // Switch to file writing if threshold is exceeded. - // This helps in managing memory efficiently for large diffs. + // This helps in managing memory efficiently for large content. if w.file == nil { var err error w.file, err = os.CreateTemp(os.TempDir(), cleantemp.MkFilename()) @@ -62,7 +62,7 @@ func (w *BufferedFileWriter) Write(ctx context.Context, p []byte) (int, error) { } // Transfer existing data in buffer to the file, then clear the buffer. - // This ensures all the diff data is in one place - either entirely in the buffer or the file. + // This ensures all the data is in one place - either entirely in the buffer or the file. if w.buf.Len() > 0 { ctx.Logger().V(4).Info("writing buffer to file", "content_size", w.buf.Len()) if _, err := w.file.Write(w.buf.Bytes()); err != nil {