mirror of https://github.com/fafhrd91/actix-web
remove unwanted comments
This commit is contained in:
parent
86858d847e
commit
106c307d85
|
@ -27,8 +27,6 @@ pub struct ClientResponse<S = PayloadStream> {
|
|||
pub(crate) timeout: ResponseTimeout,
|
||||
}
|
||||
|
||||
// a helper enum for response timeout for reusing the boxed sleep.
|
||||
// It's pass from `SendClientRequest`.
|
||||
pub(crate) enum ResponseTimeout {
|
||||
Disabled(Option<Pin<Box<Sleep>>>),
|
||||
Enabled(Option<Pin<Box<Sleep>>>),
|
||||
|
@ -177,9 +175,6 @@ impl<S> ClientResponse<S> {
|
|||
}
|
||||
}
|
||||
|
||||
// this method does not enable timeout. It's used to pass the boxed Sleep from
|
||||
// `SendClientRequest` and reuse it's heap allocation together with it's slot
|
||||
// in timer wheel.
|
||||
pub(crate) fn _timeout(mut self, timeout: Option<Pin<Box<Sleep>>>) -> Self {
|
||||
self.timeout = ResponseTimeout::Disabled(timeout);
|
||||
self
|
||||
|
|
Loading…
Reference in New Issue