tools/benchmark: update gRPC, proto interface

This commit is contained in:
Gyu-Ho Lee 2016-01-26 17:41:32 -08:00
parent 51e62aa007
commit 652c01bffe

View File

@ -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)
}()