From a83f927109d7f7b62abeede8b6049a12fa830112 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Tue, 8 Sep 2020 21:32:20 +0200 Subject: [PATCH] pool: document pool defaults --- src/transport/smtp/transport.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/transport/smtp/transport.rs b/src/transport/smtp/transport.rs index 9609774..78c3429 100644 --- a/src/transport/smtp/transport.rs +++ b/src/transport/smtp/transport.rs @@ -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 {