1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 08:40:37 +02:00

remove E param

This commit is contained in:
Nikolay Kim
2019-12-11 16:44:09 +06:00
parent f26fcc703b
commit c7a8743bf9
8 changed files with 130 additions and 162 deletions

View File

@ -22,7 +22,7 @@ async fn test_disconnect() -> std::io::Result<()> {
let disconnect1 = disconnect1.clone();
Builder::new()
.factory(fn_service(|conn: Connect<_, _, _>| {
.factory(fn_service(|conn: Connect<_, _>| {
ok(conn.codec(BytesCodec).state(State))
}))
.disconnect(move |_, _| {
@ -32,7 +32,7 @@ async fn test_disconnect() -> std::io::Result<()> {
});
let mut client = Builder::new()
.service(|conn: Connect<_, _, _>| {
.service(|conn: Connect<_, _>| {
let conn = conn.codec(BytesCodec).state(State);
conn.sink().close();
ok(conn)