Skip to content

Commit

Permalink
Update kube-client/src/client/body.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Matei David <[email protected]>
Signed-off-by: Eirik A <[email protected]>
  • Loading branch information
clux and mateiidavid authored Apr 2, 2024
1 parent e458104 commit 0a70c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kube-client/src/client/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Body {

/// Collect all the data frames and trailers of the request body
pub async fn collect_bytes(self) -> Result<Bytes, crate::Error> {

Check warning on line 48 in kube-client/src/client/body.rs

View check run for this annotation

Codecov / codecov/patch

kube-client/src/client/body.rs#L48

Added line #L48 was not covered by tests
Ok(<Self as BodyExt>::collect(self).await?.to_bytes())
Ok(self.collect().await?.to_bytes())
}

pub(crate) fn into_data_stream(
Expand Down

0 comments on commit 0a70c7d

Please sign in to comment.