Changelog History
Page 1
-
v0.8.9
June 30, 2020 -
v0.8.8
December 25, 2019 -
v0.8.7
November 25, 2019 -
v0.8.6
October 19, 2019 -
v0.8.5 Changes
June 07, 2019- โฌ๏ธ Upgraded parking_lot.
-
v0.8.4 Changes
April 02, 2019โ Added
- โ Added a
HandleEvent
trait used to listen for various events from the pool for monitoring purposes.
๐ Changed
- ๐ Switched from standard library synchronization primitives to
parking_lot
.
- โ Added a
-
v0.8.3 Changes
November 03, 2018๐ Fixed
- The set of idle connections is now treated as a stack rather than a queue. The old behavior interacted poorly with configurations that allowed the pool size to shrink when mostly idle.
-
v0.8.2 Changes
December 24, 2017๐ Changed
- โฌ๏ธ Upgraded from log 0.3 to 0.4.
-
v0.8.1 Changes
November 28, 2017๐ Fixed
- ๐ Fixed the example in the README.
-
v0.8.0 Changes
November 26, 2017๐ Changed
๐ง Pool configuration has changed. Rather than constructing a
Config
and passing it to thePool
constructor, you now configure aBuilder
which then directly constructs the pool:// In 0.7.x let config = Config::builder() .min_idle(3) .build(); let pool = Pool::new(config, manager)?; // In 0.8.x let pool = Pool::builder() .min_idle(3) .build(manager)?;
0๏ธโฃ The
Pool::new
method can be used to construct aPool
with default settings:// In 0.7.x let config = Config::default(); let pool = Pool::new(config, manager)?; // In 0.8.x let pool = Pool::new(manager)?;
The
initialization_fail_fast
configuration option has been replaced with separateBuilder::build
andBuilder::build_unchecked
methods. The second returns aPool
directly without wrapping it in aResult
, and does not check that connections are being successfully opened:// In 0.7.x let config = Config::builder() .initialization_fail_fast(false) .build(); let pool = Pool::new(config, manager).unwrap(); // In 0.8.x let pool = Pool::builder().build_unchecked(manager);
๐ The
InitializationError
andGetTimeout
error types have been merged into a unifiedError
type.The
Pool::config
method has been replaced with accessor methods onPool
to directly access configuration, such asPool::min_idle
.The
scheduled_thread_pool
crate has been upgraded from 0.1 to 0.2.
โ Removed
- โฑ The deprecated
Builder::num_threads
method has been removed. Construct aScheduledThreadPool
and set it viaBuilder::thread_pool
instead.