mirror of
https://github.com/actix/actix-web.git
synced 2024-11-20 16:41:05 +00:00
missed one pipeline_factory
This commit is contained in:
parent
d8f56eee3e
commit
2449f2555c
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ use std::{
|
|||
|
||||
use actix_http::HttpService;
|
||||
use actix_http_test::test_server;
|
||||
use actix_service::{map_config, pipeline_factory, ServiceFactoryExt};
|
||||
use actix_service::{fn_service, map_config, ServiceFactoryExt};
|
||||
use actix_utils::future::ok;
|
||||
use actix_web::{dev::AppConfig, http::Version, web, App, HttpResponse};
|
||||
use rustls::internal::pemfile::{certs, pkcs8_private_keys};
|
||||
|
@ -57,7 +57,7 @@ async fn test_connection_reuse_h2() {
|
|||
|
||||
let srv = test_server(move || {
|
||||
let num2 = num2.clone();
|
||||
pipeline_factory(move |io| {
|
||||
fn_service(move |io| {
|
||||
num2.fetch_add(1, Ordering::Relaxed);
|
||||
ok(io)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue