Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Nov 25, 2024
1 parent 0f5cb48 commit fa868f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions backend/src/http/v1/bulk/post.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
14 changes: 5 additions & 9 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.

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;
Expand Down Expand Up @@ -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 {
Expand All @@ -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) => {
Expand Down

0 comments on commit fa868f7

Please sign in to comment.