Skip to content

Commit

Permalink
Remove duplicate email
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Feb 13, 2025
1 parent 58cd95a commit 1255691
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion lib/src/email.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub async fn get_smtp_client(
.port(config.port)
.connect()
.await
.map_err(|e| format!("Error connecting to SMTP mail server: at {full_address}. Is it running? Error message: {e}"))?;
.map_err(|e| format!("Error connecting to SMTP mail server at {full_address}. Is it running? Error message: {e}"))?;
Ok(connection)
}

Expand Down
9 changes: 0 additions & 9 deletions server/src/appstate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,6 @@ impl AppState {
};
store.set_handle_commit(Box::new(send_commit));

if let Some(host) = &config.opts.smpt_host {
store
.set_smtp_config(SmtpConfig {
host: host.clone(),
port: config.opts.smpt_port,
})
.await?;
};

// If the user changes their server_url, the drive will not exist.
// In this situation, we should re-build a new drive from scratch.
if should_initialize {
Expand Down

0 comments on commit 1255691

Please sign in to comment.