1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 20:10:35 +02:00

remove server feature

This commit is contained in:
Nikolay Kim
2019-12-02 17:04:42 +06:00
parent f55f96bc77
commit 3385682e09
3 changed files with 2 additions and 21 deletions

View File

@ -33,19 +33,3 @@ pub enum SslError<E1, E2> {
Ssl(E1),
Service(E2),
}
pub trait ServerBuilderExt: Sized {
/// Sets the maximum per-worker concurrent connection establish process.
///
/// All listeners will stop accepting connections when this limit is reached. It
/// can be used to limit the global SSL CPU usage.
///
/// By default max connections is set to a 256.
fn maxconnrate(self, num: usize) -> Self {
max_concurrent_ssl_connect(num);
self
}
}
#[cfg(feature = "server")]
impl ServerBuilderExt for actix_server::ServerBuilder {}