Remove TLS related code
@@ -107,7 +107,6 @@ pub struct Pool {
count: Arc<AtomicUsize>,
check_health: bool,
use_cache: bool,
- use_tls: bool,
}
impl Pool {
@@ -203,7 +202,6 @@ impl Pool {
count: Arc::new(AtomicUsize::new(min)),
use_cache: true,
check_health: true,
- use_tls: true,
})
}
@@ -218,11 +216,6 @@ impl Pool {
self.check_health = check_health;
}
- /// A way to turn off TLS slot usage (on by default).
- pub fn use_tls(&mut self, use_tls: bool) {
- self.use_tls = use_tls;
- }
-
/// Gives you a [`PooledConn`](struct.PooledConn.html).
///
/// `Pool` will check that connection is alive via
@@ -613,16 +606,6 @@ mod test {
}
}
- #[test]
- fn should_not_block_when_pool_capacity_goes_to_tls() {
- let pool = Pool::new_manual(1, 1, get_opts()).unwrap();
- let pool1 = pool.clone();
- thread::spawn(move || {
- pool1.get_conn().unwrap()
- }).join().unwrap();
- pool.get_conn().unwrap();
- }
-
#[test]
fn should_fix_connectivity_errors_on_prepare() {
let pool = Pool::new_manual(2, 2, get_opts()).unwrap();
