Use async pool when enable async feature
Austaras opened this issue · comments
Austaras commented
Currently lettre use r2d2 for pooling but it's a sync pool, when use async it may block worker. Async pool is better when used in a async context. I'd like to work on it if this feature is desirable.
Paolo Barbolini commented
This is not true.
Pool for the Sync Transport: https://github.com/lettre/lettre/blob/master/src/transport/smtp/pool/sync_impl.rs
Pool for the Async Transport: https://github.com/lettre/lettre/blob/master/src/transport/smtp/pool/async_impl.rs