From ae4e55d150a5ef88ff567c870a3045bb14d5a829 Mon Sep 17 00:00:00 2001 From: Viacheslav Poturaev Date: Thu, 7 Mar 2024 01:06:47 +0100 Subject: [PATCH] Update deps, force errors as messages --- benchmark_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmark_test.go b/benchmark_test.go index fa10325..49808e9 100644 --- a/benchmark_test.go +++ b/benchmark_test.go @@ -2,7 +2,7 @@ package zapctxd_test import ( "context" - "io/ioutil" + "io" "testing" "github.com/bool64/ctxd" @@ -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. @@ -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()