pool: document pool defaults

This commit is contained in:
Paolo Barbolini
2020-09-08 21:32:20 +02:00
committed by Alexis Mousset
parent c59f67d808
commit a83f927109

View File

@@ -145,7 +145,14 @@ impl SmtpTransportBuilder {
SmtpTransport { inner: pool }
}
/// Build the transport (with default pool if enabled)
/// Build the transport
///
/// If the `r2d2` feature is enabled an `Arc` wrapped pool is be created.
/// Defaults:
///
/// * 60 seconds idle timeout
/// * 30 minutes max connection lifetime
/// * max pool size of 10 connections
pub fn build(self) -> SmtpTransport {
let client = self.build_client();
SmtpTransport {