Skip to content

Commit

Permalink
Update deps, force errors as messages
Browse files Browse the repository at this point in the history
  • Loading branch information
vearutop committed Mar 7, 2024
1 parent 738026d commit ae4e55d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package zapctxd_test

import (
"context"
"io/ioutil"
"io"
"testing"

"github.com/bool64/ctxd"
Expand Down Expand Up @@ -37,7 +37,7 @@ func BenchmarkCtxFull(b *testing.B) {

ctx := context.Background()
ctx = ctxd.AddFields(ctx, "bla2", 2, "ops", 3.5)
ctx = ctxd.WithLogWriter(ctx, ioutil.Discard)
ctx = ctxd.WithLogWriter(ctx, io.Discard)
ctx = ctxd.WithDebug(ctx)

// Put some pressure on context.
Expand All @@ -60,7 +60,7 @@ func BenchmarkCtxFull(b *testing.B) {
func BenchmarkCtxLite(b *testing.B) {
c := zapctxd.New(zapctxd.Config{
Level: zap.DebugLevel,
Output: ioutil.Discard,
Output: io.Discard,
})

ctx := context.Background()
Expand Down

0 comments on commit ae4e55d

Please sign in to comment.