add streaming body to requests and responses #3
1 changed files with 1 additions and 0 deletions
|
@ -280,6 +280,7 @@ impl Stream for CancelOnDropStream {
|
||||||
let res = this.stream.poll_next(cx);
|
let res = this.stream.poll_next(cx);
|
||||||
if matches!(res, Poll::Ready(None)) {
|
if matches!(res, Poll::Ready(None)) {
|
||||||
if let Some(c) = this.cancel.take() {
|
if let Some(c) = this.cancel.take() {
|
||||||
|
trace!("defusing cancel request {}", c.id);
|
||||||
std::mem::forget(c)
|
std::mem::forget(c)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue