grpcproxy: handle 'IgnoreLease' field in PutRequest

This commit is contained in:
sharat 2017-01-25 03:14:31 +05:30
parent 37fb2c454f
commit 2fce80e4c0

View File

@ -197,6 +197,9 @@ func PutRequestToOp(r *pb.PutRequest) clientv3.Op {
if r.IgnoreValue {
opts = append(opts, clientv3.WithIgnoreValue())
}
if r.IgnoreLease {
opts = append(opts, clientv3.WithIgnoreLease())
}
return clientv3.OpPut(string(r.Key), string(r.Value), opts...)
}