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

Function collect_streaming

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

Source from the content-addressed store, hash-verified

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