RHGitaly: Blob gRPC messages definitions and adapters
This handles the fact that `GetBlobResponse` and `GetBlobsResponse` have some similar logic (including metadata only on the first message for a given blob) and some differences (more metadata in the latter). We enclose the common logic in the new `message::BlobResponseChunk` trait, and implement it for both response types. The intermixing with data is not very natural in the Rust ownership context, we try and make it not too painful. There is possibly room for improvement in reducing cloning/allocations, perhaps using the `Bytes`-oriented variant of `prost`.
parent
76f69a84
No related branches found
No related tags found
rust/rhgitaly/proto/blob.proto
0 → 100644
Please register or sign in to comment