MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / collect_streaming

Function collect_streaming

atomic-cli/src/service/mod.rs:527–535  ·  view source on GitHub ↗
(
    mut stream: tonic::Streaming<pb::DiffChunk>,
)

Source from the content-addressed store, hash-verified

525/// error surface as every reactor call).
526#[allow(clippy::result_large_err)]
527async fn collect_streaming(
528 mut stream: tonic::Streaming<pb::DiffChunk>,
529) -> Result<Vec<pb::DiffChunk>, Status> {
530 let mut chunks = Vec::new();
531 while let Some(chunk) = stream.message().await? {
532 chunks.push(chunk);
533 }
534 Ok(chunks)
535}
536
537// ---------------------------------------------------------------------------
538// RepositoryMutationService

Callers 2

diff_working_copyMethod · 0.85
diffMethod · 0.85

Calls 2

messageMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected