diff --git a/tools/benchmark/cmd/lease.go b/tools/benchmark/cmd/lease.go index 8743ed27ead..85bbb161dbb 100644 --- a/tools/benchmark/cmd/lease.go +++ b/tools/benchmark/cmd/lease.go @@ -15,6 +15,7 @@ package cmd import ( + "context" "fmt" "time" @@ -22,7 +23,6 @@ import ( "github.com/coreos/etcd/pkg/report" "github.com/spf13/cobra" - "golang.org/x/net/context" "gopkg.in/cheggaaa/pb.v1" ) diff --git a/tools/benchmark/cmd/put.go b/tools/benchmark/cmd/put.go index 760c032eb5b..ff4373e2d1a 100644 --- a/tools/benchmark/cmd/put.go +++ b/tools/benchmark/cmd/put.go @@ -15,6 +15,7 @@ package cmd import ( + "context" "encoding/binary" "fmt" "math" @@ -26,7 +27,6 @@ import ( "github.com/coreos/etcd/pkg/report" "github.com/spf13/cobra" - "golang.org/x/net/context" "golang.org/x/time/rate" "gopkg.in/cheggaaa/pb.v1" ) diff --git a/tools/benchmark/cmd/range.go b/tools/benchmark/cmd/range.go index 1a83d221f32..465dad6e516 100644 --- a/tools/benchmark/cmd/range.go +++ b/tools/benchmark/cmd/range.go @@ -15,6 +15,7 @@ package cmd import ( + "context" "fmt" "math" "os" @@ -24,7 +25,6 @@ import ( "github.com/coreos/etcd/pkg/report" "github.com/spf13/cobra" - "golang.org/x/net/context" "golang.org/x/time/rate" "gopkg.in/cheggaaa/pb.v1" ) diff --git a/tools/benchmark/cmd/stm.go b/tools/benchmark/cmd/stm.go index 5d0f6cc69ee..0312056e151 100644 --- a/tools/benchmark/cmd/stm.go +++ b/tools/benchmark/cmd/stm.go @@ -15,6 +15,7 @@ package cmd import ( + "context" "encoding/binary" "fmt" "math" @@ -28,7 +29,6 @@ import ( "github.com/coreos/etcd/pkg/report" "github.com/spf13/cobra" - "golang.org/x/net/context" "golang.org/x/time/rate" "gopkg.in/cheggaaa/pb.v1" ) diff --git a/tools/benchmark/cmd/txn_put.go b/tools/benchmark/cmd/txn_put.go index c6a6c07fa91..1626411f7d6 100644 --- a/tools/benchmark/cmd/txn_put.go +++ b/tools/benchmark/cmd/txn_put.go @@ -15,6 +15,7 @@ package cmd import ( + "context" "encoding/binary" "fmt" "math" @@ -25,7 +26,6 @@ import ( "github.com/coreos/etcd/pkg/report" "github.com/spf13/cobra" - "golang.org/x/net/context" "golang.org/x/time/rate" "gopkg.in/cheggaaa/pb.v1" ) diff --git a/tools/benchmark/cmd/util.go b/tools/benchmark/cmd/util.go index a8a8b4708f1..544dceb297b 100644 --- a/tools/benchmark/cmd/util.go +++ b/tools/benchmark/cmd/util.go @@ -15,6 +15,7 @@ package cmd import ( + "context" "crypto/rand" "fmt" "log" @@ -23,7 +24,6 @@ import ( "github.com/coreos/etcd/clientv3" "github.com/coreos/etcd/pkg/report" - "golang.org/x/net/context" ) var ( diff --git a/tools/benchmark/cmd/watch_get.go b/tools/benchmark/cmd/watch_get.go index 3eb4a1be240..bb6ee64c890 100644 --- a/tools/benchmark/cmd/watch_get.go +++ b/tools/benchmark/cmd/watch_get.go @@ -15,6 +15,7 @@ package cmd import ( + "context" "fmt" "sync" "time" @@ -23,7 +24,6 @@ import ( "github.com/coreos/etcd/pkg/report" "github.com/spf13/cobra" - "golang.org/x/net/context" "gopkg.in/cheggaaa/pb.v1" ) diff --git a/tools/benchmark/cmd/watch_latency.go b/tools/benchmark/cmd/watch_latency.go index 3a070d26003..f00d29fb1cb 100644 --- a/tools/benchmark/cmd/watch_latency.go +++ b/tools/benchmark/cmd/watch_latency.go @@ -15,6 +15,7 @@ package cmd import ( + "context" "fmt" "os" "sync" @@ -24,7 +25,6 @@ import ( "github.com/coreos/etcd/pkg/report" "github.com/spf13/cobra" - "golang.org/x/net/context" "golang.org/x/time/rate" "gopkg.in/cheggaaa/pb.v1" ) @@ -33,8 +33,8 @@ import ( var watchLatencyCmd = &cobra.Command{ Use: "watch-latency", Short: "Benchmark watch latency", - Long: `Benchmarks the latency for watches by measuring - the latency between writing to a key and receiving the + Long: `Benchmarks the latency for watches by measuring + the latency between writing to a key and receiving the associated watch response.`, Run: watchLatencyFunc, }