Skip to content

Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.

chore(backend): Improve concurrency message

Amaury885ad01780f8
diff --git a/backend/src/main.rs b/backend/src/main.rs
index 43fa8fb9..a1858fce 100644
--- a/backend/src/main.rs
+++ b/backend/src/main.rs
@@ -36,7 +36,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let is_bulk_enabled = env::var("RCH_ENABLE_BULK").unwrap_or_else(|_| "0".into()) == "1";
if is_bulk_enabled {
- log::info!(target: LOG_TARGET, "Bulk endpoints enabled.");
let pool = create_db().await?;
let _registry = create_job_registry(&pool).await?;
let routes = create_routes(Some(pool));
@@ -104,6 +103,11 @@ async fn create_job_registry(pool: &Pool<Postgres>) -> Result<OwnedHandle, sqlx:
.run()
.await?;
+ log::info!(
+ target: LOG_TARGET,
+ "Bulk endpoints enabled with concurrency min={min_task_conc} to max={max_conc_task_fetch}."
+ );
+
Ok(registry)
}