diff options
author | Kevin Burke <kev@inburke.com> | 2021-02-24 09:12:34 -0800 |
---|---|---|
committer | Kevin Burke <kev@inburke.com> | 2021-02-24 18:15:00 +0000 |
commit | c9d9b40b1355a8e6674aaaf6abaf362e66abae47 (patch) | |
tree | 168c589a512a8fcf26598d56f3cdd19040d56511 /src/context | |
parent | dc4698f52b5ad3f0251e0cc25bc7ffbd10e23f2c (diff) | |
download | go-c9d9b40b1355a8e6674aaaf6abaf362e66abae47.tar.gz go-c9d9b40b1355a8e6674aaaf6abaf362e66abae47.zip |
context: avoid importing context package twice
Change-Id: Id0a127e080dda8ee62738922c6de8caf3719dd68
Reviewed-on: https://go-review.googlesource.com/c/go/+/295949
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Trust: Kevin Burke <kev@inburke.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/context')
-rw-r--r-- | src/context/benchmark_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/context/benchmark_test.go b/src/context/benchmark_test.go index c4c72f00f8..69d75fff18 100644 --- a/src/context/benchmark_test.go +++ b/src/context/benchmark_test.go @@ -5,7 +5,6 @@ package context_test import ( - "context" . "context" "fmt" "runtime" @@ -141,7 +140,7 @@ func BenchmarkCheckCanceled(b *testing.B) { } func BenchmarkContextCancelDone(b *testing.B) { - ctx, cancel := context.WithCancel(context.Background()) + ctx, cancel := WithCancel(Background()) defer cancel() b.RunParallel(func(pb *testing.PB) { |