We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d56512 commit 7cb0a07Copy full SHA for 7cb0a07
src/db/mod.rs
@@ -31,7 +31,7 @@ pub fn connect_db() -> Result<Connection, Error> {
31
}
32
33
34
-pub fn create_pool() -> r2d2::Pool<r2d2_postgres::PostgresConnectionManager> {
+pub(crate) fn create_pool() -> r2d2::Pool<r2d2_postgres::PostgresConnectionManager> {
35
let db_url = env::var("CRATESFYI_DATABASE_URL")
36
.expect("CRATESFYI_DATABASE_URL environment variable is not exists");
37
let manager = r2d2_postgres::PostgresConnectionManager::new(&db_url[..],
0 commit comments