1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-07-01 20:25:09 +02:00

add Default impl for ServiceConfig

This commit is contained in:
Nikolay Kim
2018-10-08 15:52:12 -07:00
parent 3984ad45df
commit f99a723643
2 changed files with 8 additions and 2 deletions

View File

@ -57,6 +57,12 @@ impl Clone for ServiceConfig {
}
}
impl Default for ServiceConfig {
fn default() -> Self {
Self::new(KeepAlive::Timeout(5), 0, 0)
}
}
impl ServiceConfig {
/// Create instance of `ServiceConfig`
pub(crate) fn new(