1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 17:07:01 +02:00

rename and simplify ServiceFactory trait

This commit is contained in:
Nikolay Kim
2018-09-27 17:21:28 -07:00
parent d57579d700
commit 85445ea809
4 changed files with 19 additions and 17 deletions

View File

@@ -330,8 +330,12 @@ mod tests {
let mut rt = current_thread::Runtime::new().unwrap();
let _ = rt.block_on(future::lazy(|| {
let settings =
WorkerSettings::<()>::new((), KeepAlive::Os, ServerSettings::default());
let settings = WorkerSettings::<()>::new(
(),
KeepAlive::Os,
0,
ServerSettings::default(),
);
let mut buf1 = BytesMut::with_capacity(DATE_VALUE_LENGTH + 10);
settings.set_date(&mut buf1, true);
let mut buf2 = BytesMut::with_capacity(DATE_VALUE_LENGTH + 10);