fix(transport-smtp): Fix max_size setter for PoolConfig (#546)

Currently the `max_size` setter method incorrectly assigns the
new value to `self.min_idle` instead of `self.max_size`. This
change fixes the issue.
This commit is contained in:
konomith
2021-02-15 16:19:37 -05:00
committed by GitHub
parent a04866acfb
commit 9146212a3e

View File

@@ -33,7 +33,7 @@ impl PoolConfig {
///
/// Defaults to `10`
pub fn max_size(mut self, max_size: u32) -> Self {
self.min_idle = max_size;
self.max_size = max_size;
self
}