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:
@ -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(
|
||||
|
Reference in New Issue
Block a user