From 30476a35098d3dd6da059eb7d53b10809ebaaf64 Mon Sep 17 00:00:00 2001 From: Sean Marciniak <30928402+MovieStoreGuy@users.noreply.github.com> Date: Wed, 18 Jan 2023 09:59:28 +1030 Subject: [PATCH] Fixing naming --- exporter/fileexporter/buffered_writer_test.go | 6 +++--- exporter/fileexporter/factory.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exporter/fileexporter/buffered_writer_test.go b/exporter/fileexporter/buffered_writer_test.go index 9d5af17bfec0..7e4fb342eaee 100644 --- a/exporter/fileexporter/buffered_writer_test.go +++ b/exporter/fileexporter/buffered_writer_test.go @@ -46,7 +46,7 @@ func TestBufferedWrites(t *testing.T) { t.Parallel() b := bytes.NewBuffer(nil) - w := newBufferedWriterCloser(&NopWriteCloser{b}) + w := newBufferedWriteCloser(&NopWriteCloser{b}) _, err := w.Write([]byte(msg)) require.NoError(t, err, "Must not error when writing data") @@ -81,9 +81,9 @@ func BenchmarkWriter(b *testing.B) { } for name, w := range map[string]io.WriteCloser{ "discard": &NopWriteCloser{io.Discard}, - "buffered-discard": newBufferedWriterCloser(&NopWriteCloser{io.Discard}), + "buffered-discard": newBufferedWriteCloser(&NopWriteCloser{io.Discard}), "raw-file": tempfile(b), - "buffered-file": newBufferedWriterCloser(tempfile(b)), + "buffered-file": newBufferedWriteCloser(tempfile(b)), } { w := w b.Run(fmt.Sprintf("%s_%d_bytes", name, payloadSize), func(b *testing.B) { diff --git a/exporter/fileexporter/factory.go b/exporter/fileexporter/factory.go index 62218ef455b3..8f859de25850 100644 --- a/exporter/fileexporter/factory.go +++ b/exporter/fileexporter/factory.go @@ -150,7 +150,7 @@ func buildFileWriter(cfg *Config) (io.WriteCloser, error) { if err != nil { return nil, err } - return newBufferedWriterCloser(f), nil + return newBufferedWriteCloser(f), nil } return &lumberjack.Logger{ Filename: cfg.Path,