mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-19 04:15:38 +02:00
make AcceptorTimeout::new public
This commit is contained in:
@@ -182,7 +182,8 @@ pub struct AcceptorTimeout<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<T: NewService> AcceptorTimeout<T> {
|
impl<T: NewService> AcceptorTimeout<T> {
|
||||||
pub(crate) fn new(timeout: u64, inner: T) -> Self {
|
/// Create new `AcceptorTimeout` instance. timeout is in milliseconds.
|
||||||
|
pub fn new(timeout: u64, inner: T) -> Self {
|
||||||
Self {
|
Self {
|
||||||
inner,
|
inner,
|
||||||
timeout: Duration::from_millis(timeout),
|
timeout: Duration::from_millis(timeout),
|
||||||
|
Reference in New Issue
Block a user