Skip to content

Commit 00c5d77

Browse files
authored
Merge pull request #68 from dmeijboom/hotfix/readme-deadpool-example
Fix deadpool example in README
2 parents b860f3e + e15651a commit 00c5d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ use diesel_async::RunQueryDsl;
123123

124124
// create a new connection pool with the default config
125125
let config = AsyncDieselConnectionManager::<diesel_async::AsyncPgConnection>::new(std::env::var("DATABASE_URL")?);
126-
let pool = Pool::builder().build(config)?;
126+
let pool = Pool::builder(config).build()?;
127127

128128
// checkout a connection from the pool
129129
let mut conn = pool.get().await?;

0 commit comments

Comments
 (0)