Skip to content

Commit

Permalink
chore(test): fix shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Jan 12, 2022
1 parent dc4f7e0 commit 4b65b2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions otel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,11 @@ func BenchmarkOTEL_Decode(b *testing.B) {
b.ReportAllocs()
b.SetBytes(int64(len(otelEx1)))

var v OTEL
var vDec OTEL
for i := 0; i < b.N; i++ {
v.Reset()
vDec.Reset()
d.ResetBytes(otelEx1)
if err := v.Decode(d); err != nil {
if err := vDec.Decode(d); err != nil {
b.Fatal(err)
}
}
Expand Down

0 comments on commit 4b65b2d

Please sign in to comment.