SMTP codebase import
This commit is contained in:
@@ -24,7 +24,7 @@ aes-gcm-siv = "0.11.1"
|
||||
bincode = "1.3.3"
|
||||
form-data = { version = "0.4.2", features = ["sync"], default-features = false }
|
||||
mime = "0.3.17"
|
||||
sqlx = { git = "https://github.com/mdecimus/sqlx", features = [ "runtime-tokio-rustls", "postgres", "mysql", "sqlite" ] }
|
||||
sqlx = { version = "0.7.0-alpha.3", features = [ "runtime-tokio-rustls", "postgres", "mysql", "sqlite" ] }
|
||||
futures-util = "0.3.28"
|
||||
async-stream = "0.3.5"
|
||||
base64 = "0.21"
|
||||
|
||||
@@ -29,9 +29,6 @@ impl crate::Config {
|
||||
request_max_concurrent: settings
|
||||
.property("jmap.protocol.request.max-concurrent")?
|
||||
.unwrap_or(4),
|
||||
request_max_concurrent_total: settings
|
||||
.property("jmap.protocol.request.max-concurrent-total")?
|
||||
.unwrap_or(4),
|
||||
get_max_objects: settings
|
||||
.property("jmap.protocol.get.max-objects")?
|
||||
.unwrap_or(500),
|
||||
|
||||
@@ -242,10 +242,6 @@ impl SessionManager for super::SessionManager {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
fn max_concurrent(&self) -> u64 {
|
||||
self.inner.config.request_max_concurrent_total
|
||||
}
|
||||
}
|
||||
|
||||
async fn handle_request<T: AsyncRead + AsyncWrite + Unpin + 'static>(
|
||||
|
||||
@@ -58,7 +58,6 @@ pub struct Config {
|
||||
pub request_max_size: usize,
|
||||
pub request_max_calls: usize,
|
||||
pub request_max_concurrent: u64,
|
||||
pub request_max_concurrent_total: u64,
|
||||
|
||||
pub get_max_objects: usize,
|
||||
pub set_max_objects: usize,
|
||||
|
||||
Reference in New Issue
Block a user