Skip to content

Commit

Permalink
formatted module
Browse files Browse the repository at this point in the history
  • Loading branch information
yasamoka committed Apr 15, 2024
1 parent 06a3f73 commit 664e625
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/async/conn_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ struct ConnectionPool<B: Backend> {
backend: Arc<B>,
db_id: Uuid,
conn_pool: Option<B::Pool>,
is_restricted: bool
is_restricted: bool,
}

impl<B: Backend> Deref for ConnectionPool<B> {
Expand Down Expand Up @@ -50,7 +50,7 @@ impl<B: Backend> ReusableConnectionPool<B> {
backend,
db_id,
conn_pool: Some(conn_pool),
is_restricted: true
is_restricted: true,
}))
}

Expand Down Expand Up @@ -82,12 +82,11 @@ impl<B: Backend> SingleUseConnectionPool<B> {
let conn_pool = backend.create(db_id, false).await?;

Ok(Self(ConnectionPool {
backend,
db_id,
conn_pool: Some(conn_pool),
is_restricted: false
},
))
backend,
db_id,
conn_pool: Some(conn_pool),
is_restricted: false,
}))
}
}

Expand Down

0 comments on commit 664e625

Please sign in to comment.