tools/benchmark: update gRPC, proto interface
This commit is contained in:
@ -109,8 +109,9 @@ func watchFunc(cmd *cobra.Command, args []string) {
|
|||||||
go func() {
|
go func() {
|
||||||
for i := 0; i < watchTotal; i++ {
|
for i := 0; i < watchTotal; i++ {
|
||||||
requests <- etcdserverpb.WatchRequest{
|
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)
|
close(requests)
|
||||||
}()
|
}()
|
||||||
|
Reference in New Issue
Block a user