Fix formatting

This commit is contained in:
Nicolas 2025-06-01 18:37:55 +10:00
parent ee7e37c62f
commit 9320df6339
5 changed files with 13 additions and 7 deletions

View File

@ -151,8 +151,14 @@ mod tests {
#[actix_rt::test] #[actix_rt::test]
async fn test_date_service_update() { async fn test_date_service_update() {
let settings = let settings = ServiceConfig::new(
ServiceConfig::new(KeepAlive::Os, Duration::ZERO, Duration::ZERO, None, false, None); KeepAlive::Os,
Duration::ZERO,
Duration::ZERO,
None,
false,
None,
);
yield_now().await; yield_now().await;

View File

@ -495,7 +495,7 @@ where
StateProj::SendPayload { mut body } => { StateProj::SendPayload { mut body } => {
// keep populate writer buffer until buffer size limit hit, // keep populate writer buffer until buffer size limit hit,
// get blocked or finished. // get blocked or finished.
while this.write_buf.len() < *this.max_buffer_size /*super::payload::MAX_BUFFER_SIZE*/ { while this.write_buf.len() < *this.max_buffer_size {
match body.as_mut().poll_next(cx) { match body.as_mut().poll_next(cx) {
Poll::Ready(Some(Ok(item))) => { Poll::Ready(Some(Ok(item))) => {
this.codec this.codec
@ -534,7 +534,7 @@ where
// keep populate writer buffer until buffer size limit hit, // keep populate writer buffer until buffer size limit hit,
// get blocked or finished. // get blocked or finished.
while this.write_buf.len() < *this.max_buffer_size /*super::payload::MAX_BUFFER_SIZE*/ { while this.write_buf.len() < *this.max_buffer_size {
match body.as_mut().poll_next(cx) { match body.as_mut().poll_next(cx) {
Poll::Ready(Some(Ok(item))) => { Poll::Ready(Some(Ok(item))) => {
this.codec this.codec

View File

@ -10,7 +10,7 @@ use futures_util::future::lazy;
use super::dispatcher::{Dispatcher, DispatcherState, DispatcherStateProj, Flags}; use super::dispatcher::{Dispatcher, DispatcherState, DispatcherStateProj, Flags};
use crate::{ use crate::{
body::MessageBody, body::MessageBody,
config::{ServiceConfig}, config::ServiceConfig,
h1::{Codec, ExpectHandler, UpgradeHandler}, h1::{Codec, ExpectHandler, UpgradeHandler},
service::HttpFlow, service::HttpFlow,
test::{TestBuffer, TestSeqBuffer}, test::{TestBuffer, TestSeqBuffer},