RHGitaly: helpers for server streaming gRPC methods involving repositories
All future implementations of streaming methods with repositories will follow the same pattern, hence we provide a generic helper right away, taking care notably of repetitive error treatment (sending errors etc.). Detailed explanations of the constraints and how it will work are provided in the doc-comment of the `load_repo_and_stream` function. Concrete gRPC method implementations will consist mostly of calling it with the closure doing the actual work on the loaded repository.
parent
a273ee46
No related branches found
No related tags found
rust/rhgitaly/src/streaming.rs
0 → 100644
Please register or sign in to comment