Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Feb 20, 2024
1 parent 9d5ba8e commit f2e93a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ impl IntoResource<bb8::Pool<AsyncPgConnection>> for Wrapper {
#[async_trait]
#[cfg(feature = "deadpool")]
impl IntoResource<deadpool::Pool<AsyncPgConnection>> for Wrapper {
async fn into_resource(self) -> Result<deadpool::Pool<AsyncPgConnection>, shuttle_service::Error> {
async fn into_resource(
self,
) -> Result<deadpool::Pool<AsyncPgConnection>, shuttle_service::Error> {
deadpool::Pool::builder(get_pool_manager(&self.0))
.max_size(MAX_POOL_SIZE)
.build()
Expand Down

0 comments on commit f2e93a8

Please sign in to comment.