Skip to content

Commit

Permalink
chore(body): mark Body::channel() as deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: katelyn martin <[email protected]>
  • Loading branch information
cratelyn committed Jan 6, 2025
1 parent 72ebcff commit 7ee2b12
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/body/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ impl Body {
///
/// Useful when wanting to stream chunks from another thread.
#[inline]
#[cfg_attr(
feature = "deprecated",
deprecated(
note = "This function has been removed. Wrap `tokio::sync::mspc::Receiver<T>` in a `StreamBody` instead."
)
)]
#[cfg_attr(feature = "deprecated", allow(deprecated))]
pub fn channel() -> (Sender, Body) {
Self::new_channel(DecodedLength::CHUNKED, /*wanter =*/ false)
}
Expand Down

0 comments on commit 7ee2b12

Please sign in to comment.