mirror of
https://github.com/telemt/telemt.git
synced 2026-04-26 23:14:10 +03:00
Rustfmt
This commit is contained in:
@@ -293,9 +293,7 @@ impl MePool {
|
||||
WriterContour::Draining => "draining",
|
||||
};
|
||||
|
||||
if !draining
|
||||
&& let Some(dc_idx) = dc
|
||||
{
|
||||
if !draining && let Some(dc_idx) = dc {
|
||||
*live_writers_by_dc_endpoint
|
||||
.entry((dc_idx, endpoint))
|
||||
.or_insert(0) += 1;
|
||||
|
||||
@@ -201,7 +201,10 @@ impl ConnectionPool {
|
||||
pub async fn close_all(&self) {
|
||||
let pools_snapshot: Vec<(SocketAddr, Arc<Mutex<PoolInner>>)> = {
|
||||
let pools = self.pools.read();
|
||||
pools.iter().map(|(addr, pool)| (*addr, Arc::clone(pool))).collect()
|
||||
pools
|
||||
.iter()
|
||||
.map(|(addr, pool)| (*addr, Arc::clone(pool)))
|
||||
.collect()
|
||||
};
|
||||
|
||||
for (addr, pool) in pools_snapshot {
|
||||
|
||||
Reference in New Issue
Block a user