Skip to content

Commit

Permalink
Merge pull request etcd-io#8528 from gyuho/ctx
Browse files Browse the repository at this point in the history
tools/benchmark: replace 'golang.org/x/net/context' with 'context'
  • Loading branch information
gyuho committed Sep 8, 2017
2 parents 9a1e294 + 640c0e6 commit ba89bbb
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tools/benchmark/cmd/lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
package cmd

import (
"context"
"fmt"
"time"

v3 "github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/pkg/report"

"github.com/spf13/cobra"
"golang.org/x/net/context"
"gopkg.in/cheggaaa/pb.v1"
)

Expand Down
2 changes: 1 addition & 1 deletion tools/benchmark/cmd/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package cmd

import (
"context"
"encoding/binary"
"fmt"
"math"
Expand All @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion tools/benchmark/cmd/range.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package cmd

import (
"context"
"fmt"
"math"
"os"
Expand All @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion tools/benchmark/cmd/stm.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package cmd

import (
"context"
"encoding/binary"
"fmt"
"math"
Expand All @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion tools/benchmark/cmd/txn_put.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package cmd

import (
"context"
"encoding/binary"
"fmt"
"math"
Expand All @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion tools/benchmark/cmd/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package cmd

import (
"context"
"crypto/rand"
"fmt"
"log"
Expand All @@ -23,7 +24,6 @@ import (

"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/pkg/report"
"golang.org/x/net/context"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion tools/benchmark/cmd/watch_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package cmd

import (
"context"
"fmt"
"sync"
"time"
Expand All @@ -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"
)

Expand Down
6 changes: 3 additions & 3 deletions tools/benchmark/cmd/watch_latency.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package cmd

import (
"context"
"fmt"
"os"
"sync"
Expand All @@ -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"
)
Expand All @@ -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,
}
Expand Down

0 comments on commit ba89bbb

Please sign in to comment.