mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tools/benchmark: update gRPC, proto interface
This commit is contained in:
parent
51e62aa007
commit
652c01bffe
@ -109,8 +109,9 @@ func watchFunc(cmd *cobra.Command, args []string) {
|
||||
go func() {
|
||||
for i := 0; i < watchTotal; i++ {
|
||||
requests <- etcdserverpb.WatchRequest{
|
||||
CreateRequest: &etcdserverpb.WatchCreateRequest{Key: watched[i%(len(watched))]},
|
||||
}
|
||||
RequestUnion: &etcdserverpb.WatchRequest_CreateRequest{
|
||||
CreateRequest: &etcdserverpb.WatchCreateRequest{
|
||||
Key: watched[i%(len(watched))]}}}
|
||||
}
|
||||
close(requests)
|
||||
}()
|
||||
|
Loading…
x
Reference in New Issue
Block a user