Fix gRPC encapsulated storage operations
* Fix gRPC encapsulated storage operations
The rust-protobuf implementation does not automatically set
Any::type_url.
* Link upstream issue
@@ -76,6 +76,11 @@ impl Storage {
);
let mut request_any = protobuf::well_known_types::Any::new();
+ // TODO: rust-protobuf does not provide pack_from/unpack_to functions.
+ // https://github.com/stepancheg/rust-protobuf/issues/455
+ request_any.set_type_url(
+ String::from("type.googleapis.com/") + operation_request.descriptor().full_name(),
+ );
operation_request
.write_to_writer(&mut request_any.value)
.unwrap();
