mirror of
https://github.com/actix/actix-web.git
synced 2024-10-21 17:33:59 +00:00
make AcceptorTimeout::new public
This commit is contained in:
parent
bbcd618304
commit
401ea574c0
1 changed files with 2 additions and 1 deletions
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue