style(http1): correct indentation
Minor reformatting of single block.
This commit is contained in:
committed by
Sean McArthur
parent
e8cccce0c1
commit
f44f7265e0
@@ -76,21 +76,22 @@ where
|
|||||||
|
|
||||||
#[cfg(all(feature = "server", feature = "runtime"))]
|
#[cfg(all(feature = "server", feature = "runtime"))]
|
||||||
if !*ctx.h1_header_read_timeout_running {
|
if !*ctx.h1_header_read_timeout_running {
|
||||||
if let Some(h1_header_read_timeout) = ctx.h1_header_read_timeout {
|
if let Some(h1_header_read_timeout) = ctx.h1_header_read_timeout {
|
||||||
let deadline = Instant::now() + h1_header_read_timeout;
|
let deadline = Instant::now() + h1_header_read_timeout;
|
||||||
|
|
||||||
match ctx.h1_header_read_timeout_fut {
|
match ctx.h1_header_read_timeout_fut {
|
||||||
Some(h1_header_read_timeout_fut) => {
|
Some(h1_header_read_timeout_fut) => {
|
||||||
debug!("resetting h1 header read timeout timer");
|
debug!("resetting h1 header read timeout timer");
|
||||||
h1_header_read_timeout_fut.as_mut().reset(deadline);
|
h1_header_read_timeout_fut.as_mut().reset(deadline);
|
||||||
},
|
}
|
||||||
None => {
|
None => {
|
||||||
debug!("setting h1 header read timeout timer");
|
debug!("setting h1 header read timeout timer");
|
||||||
*ctx.h1_header_read_timeout_fut = Some(Box::pin(tokio::time::sleep_until(deadline)));
|
*ctx.h1_header_read_timeout_fut =
|
||||||
|
Some(Box::pin(tokio::time::sleep_until(deadline)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
T::parse(bytes, ctx)
|
T::parse(bytes, ctx)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user