mirror of
https://fuchsia.googlesource.com/third_party/grpc
synced 2024-07-11 22:23:32 +00:00
Avoid deprecated method
The two-parameter overload of SetTotalBytesLimit was removed in https://github.com/protocolbuffers/protobuf/commit/cda7954; since we are looking to upgrade protobuf past that revision, we need to migrate to the single-parameter overload. This patch is necessary because we cannot move to a more recent version of gRPC until https://github.com/grpc/grpc/pull/26869 is landed due to the use of wyhash and its UNLICENSE. Change-Id: I226fea814226febaf1c5e5206d3eba3d415e9bdf Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/grpc/+/564026 Reviewed-by: James Robinson <jamesr@google.com>
This commit is contained in:
parent
83fcc63166
commit
1d06f93345
|
@ -221,7 +221,7 @@ Status GenericDeserialize(grpc_byte_buffer* buffer,
|
|||
return reader.status();
|
||||
}
|
||||
::grpc::protobuf::io::CodedInputStream decoder(&reader);
|
||||
decoder.SetTotalBytesLimit(INT_MAX, INT_MAX);
|
||||
decoder.SetTotalBytesLimit(INT_MAX);
|
||||
if (!msg->ParseFromCodedStream(&decoder)) {
|
||||
result = Status(StatusCode::INTERNAL, msg->InitializationErrorString());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user