fn drop_connections<'a, M>(
    pool: &Arc<SharedPool<M>>,
    mut internals: MutexGuard<'a, PoolInternals<M::Connection>>,
    dropped: usize,
) where
    M: ManageConnection,
{
    internals.num_conns -= dropped as u32;
    // We might need to spin up more connections to maintain the idle limit, e.g.
    // if we hit connection lifetime limits
    if internals.num_conns + internals.pending_conns < pool.statics.max_size {
        Pool {
            inner: pool.clone(),
        }
        .spawn_replenishing();
    }
}
// Drop connections
// NB: This is called with the pool lock held.
Drop connections
NB: This is called with the pool lock held.
Drop connections NB : This is called with the pool lock held .
fn drop_connections<'a, M>(
    pool: &Arc<SharedPool<M>>,
    mut internals: MutexGuard<'a, PoolInternals<M::Connection>>,
    dropped: usize,
) where
    M: ManageConnection,
{
    internals.num_conns -= dropped as u32;
    // We might need to spin up more connections to maintain the idle limit, e.g.
    // if we hit connection lifetime limits
    if internals.num_conns + internals.pending_conns < pool.statics.max_size {
        Pool {
            inner: pool.clone(),
        }
        .spawn_replenishing();
    }
}
fn drop_connections < ' a , M > ( pool : & Arc < SharedPool < M > > , mut internals : MutexGuard < ' a , PoolInternals < M :: Connection > > , dropped : usize , ) where M : ManageConnection , { internals . num_conns -= dropped as u32 ; // We might need to spin up more connections to maintain the idle limit, e.g. // if we hit connection lifetime limits if internals . num_conns + internals . pending_conns < pool . statics . max_size { Pool { inner : pool . clone ( ) , } . spawn_replenishing ( ) ; } }
Drop connections
NB: This is called with the pool lock held.
Drop connections NB : This is called with the pool lock held .
pool
&Arc<SharedPool<M>>
internals
MutexGuard<'a, PoolInternals<M::Connection>>
dropped
usize
pool
&Arc<SharedPool<M>>
internals
MutexGuard<'a, PoolInternals<M::Connection>>
dropped
usize