Skip to content

Commit 7cb0a07

Browse files
committed
make create_pool pub(crate)
1 parent 5d56512 commit 7cb0a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn connect_db() -> Result<Connection, Error> {
3131
}
3232

3333

34-
pub fn create_pool() -> r2d2::Pool<r2d2_postgres::PostgresConnectionManager> {
34+
pub(crate) fn create_pool() -> r2d2::Pool<r2d2_postgres::PostgresConnectionManager> {
3535
let db_url = env::var("CRATESFYI_DATABASE_URL")
3636
.expect("CRATESFYI_DATABASE_URL environment variable is not exists");
3737
let manager = r2d2_postgres::PostgresConnectionManager::new(&db_url[..],

0 commit comments

Comments
 (0)