*: rename etcd service to kv service in gRPC

This commit is contained in:
Xiang Li
2015-11-04 09:53:51 -08:00
parent 1f1d8e9282
commit 1a3f7f7fa4
12 changed files with 55 additions and 57 deletions

View File

@ -48,10 +48,10 @@ func deleteRangeCommandFunc(c *cli.Context) {
if err != nil {
panic(err)
}
etcd := pb.NewEtcdClient(conn)
kv := pb.NewKVClient(conn)
req := &pb.DeleteRangeRequest{Key: key, RangeEnd: rangeEnd}
etcd.DeleteRange(context.Background(), req)
kv.DeleteRange(context.Background(), req)
if rangeEnd != nil {
fmt.Printf("range [%s, %s) is deleted\n", string(key), string(rangeEnd))