mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 08:22:59 +01:00
remove debug print, remove unused flags
This commit is contained in:
parent
e15e4f18fd
commit
409888fcd5
@ -28,20 +28,12 @@ use crate::response::Response;
|
|||||||
|
|
||||||
const CHUNK_SIZE: usize = 16_384;
|
const CHUNK_SIZE: usize = 16_384;
|
||||||
|
|
||||||
bitflags! {
|
|
||||||
struct Flags: u8 {
|
|
||||||
const DISCONNECTED = 0b0000_0001;
|
|
||||||
const SHUTDOWN = 0b0000_0010;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Dispatcher for HTTP/2 protocol
|
/// Dispatcher for HTTP/2 protocol
|
||||||
pub struct Dispatcher<
|
pub struct Dispatcher<
|
||||||
T: AsyncRead + AsyncWrite,
|
T: AsyncRead + AsyncWrite,
|
||||||
S: Service<Request = Request> + 'static,
|
S: Service<Request = Request> + 'static,
|
||||||
B: MessageBody,
|
B: MessageBody,
|
||||||
> {
|
> {
|
||||||
flags: Flags,
|
|
||||||
service: CloneableService<S>,
|
service: CloneableService<S>,
|
||||||
connection: Connection<T, Bytes>,
|
connection: Connection<T, Bytes>,
|
||||||
config: ServiceConfig,
|
config: ServiceConfig,
|
||||||
@ -86,7 +78,6 @@ where
|
|||||||
ka_expire,
|
ka_expire,
|
||||||
ka_timer,
|
ka_timer,
|
||||||
connection,
|
connection,
|
||||||
flags: Flags::empty(),
|
|
||||||
_t: PhantomData,
|
_t: PhantomData,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,10 +40,7 @@ impl Stream for Payload {
|
|||||||
}
|
}
|
||||||
Ok(Async::Ready(None)) => Ok(Async::Ready(None)),
|
Ok(Async::Ready(None)) => Ok(Async::Ready(None)),
|
||||||
Ok(Async::NotReady) => Ok(Async::NotReady),
|
Ok(Async::NotReady) => Ok(Async::NotReady),
|
||||||
Err(err) => {
|
Err(err) => Err(err.into()),
|
||||||
println!("======== {:?}", err);
|
|
||||||
Err(err.into())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user