Skip to content

Commit e15651a

Browse files
author
Dillen Meijboom
committed
fix: deadpool example in README
1 parent b860f3e commit e15651a

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)