Skip to content

Commit

Permalink
tools: fix build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
YoyinZyc committed Oct 2, 2019
1 parent 626deb6 commit 4b7ed9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/benchmark/cmd/mvcc-put.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

"go.etcd.io/etcd/lease"
"go.etcd.io/etcd/pkg/report"
"go.etcd.io/etcd/pkg/traceutil"

"github.com/spf13/cobra"
)
Expand Down Expand Up @@ -114,7 +115,7 @@ func mvccPutFunc(cmd *cobra.Command, args []string) {
for i := 0; i < mvccTotalRequests; i++ {
st := time.Now()

tw := s.Write()
tw := s.Write(traceutil.TODO())
for j := i; j < i+nrTxnOps; j++ {
tw.Put(keys[j], vals[j], lease.NoLease)
}
Expand Down

0 comments on commit 4b7ed9a

Please sign in to comment.