From c976254b2d867df6aae2703e88aec4724eecb979 Mon Sep 17 00:00:00 2001 From: Enola Knezevic Date: Mon, 14 Oct 2024 15:12:55 +0200 Subject: [PATCH] renamed max_attempts to max_db_attempts --- src/db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db.rs b/src/db.rs index 320eeb5..610a649 100644 --- a/src/db.rs +++ b/src/db.rs @@ -14,7 +14,7 @@ pub struct SqlQuery { include!(concat!(env!("OUT_DIR"), "/sql_replace_map.rs")); -pub async fn get_pg_connection_pool(pg_url: &str, max_attempts: u32) -> Result { +pub async fn get_pg_connection_pool(pg_url: &str, max_db_attempts: u32) -> Result { info!("Trying to establish a PostgreSQL connection pool"); tryhard::retry_fn(|| async { @@ -28,7 +28,7 @@ pub async fn get_pg_connection_pool(pg_url: &str, max_attempts: u32) -> Result