From fa868f7e049c48fdd0c95cdd2ea6b80255407a8e Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Mon, 25 Nov 2024 21:49:51 +0100 Subject: [PATCH] fix build --- backend/src/http/v1/bulk/post.rs | 1 + cli/src/main.rs | 14 +++++--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/backend/src/http/v1/bulk/post.rs b/backend/src/http/v1/bulk/post.rs index 3ade77ab4..3b34ac432 100644 --- a/backend/src/http/v1/bulk/post.rs +++ b/backend/src/http/v1/bulk/post.rs @@ -85,6 +85,7 @@ async fn http_handler( hotmailb2b_verif_method: None, hotmailb2c_verif_method: None, yahoo_verif_method: None, + smtp_port: None, }; Ok(PreprocessTask { diff --git a/cli/src/main.rs b/cli/src/main.rs index 560079035..0792a02a1 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -15,8 +15,8 @@ // along with this program. If not, see . use check_if_email_exists::{ - check_email, config::ReacherConfig, CheckEmailInputBuilder, CheckEmailInputProxy, - GmailVerifMethod, HotmailB2BVerifMethod, HotmailB2CVerifMethod, YahooVerifMethod, + check_email, CheckEmailInputBuilder, CheckEmailInputProxy, GmailVerifMethod, + HotmailB2BVerifMethod, HotmailB2CVerifMethod, YahooVerifMethod, }; use clap::Parser; use once_cell::sync::Lazy; @@ -104,7 +104,8 @@ async fn main() -> Result<(), anyhow::Error> { .hotmailb2b_verif_method(CONF.hotmailb2b_verif_method) .hotmailb2c_verif_method(CONF.hotmailb2c_verif_method) .check_gravatar(CONF.check_gravatar) - .haveibeenpwned_api_key(CONF.haveibeenpwned_api_key.clone()); + .haveibeenpwned_api_key(CONF.haveibeenpwned_api_key.clone()) + .backend_name("reacher-cli".to_string()); if let Some(proxy_host) = &CONF.proxy_host { input = input.proxy(Some(CheckEmailInputProxy { @@ -116,12 +117,7 @@ async fn main() -> Result<(), anyhow::Error> { } let input = input.build()?; - let config = ReacherConfig { - backend_name: "reacher-cli".to_string(), - ..Default::default() - }; - - let result = check_email(&input, &config).await; + let result = check_email(&input).await; match serde_json::to_string_pretty(&result) { Ok(output) => {