Skip to content

Commit

Permalink
Fixing naming
Browse files Browse the repository at this point in the history
  • Loading branch information
MovieStoreGuy committed Jan 17, 2023
1 parent 122e340 commit 30476a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions exporter/fileexporter/buffered_writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion exporter/fileexporter/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 30476a3

Please sign in to comment.