Skip to content

Commit 1255691

Browse files
committed
Remove duplicate email
1 parent 58cd95a commit 1255691

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

lib/src/email.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub async fn get_smtp_client(
5252
.port(config.port)
5353
.connect()
5454
.await
55-
.map_err(|e| format!("Error connecting to SMTP mail server: at {full_address}. Is it running? Error message: {e}"))?;
55+
.map_err(|e| format!("Error connecting to SMTP mail server at {full_address}. Is it running? Error message: {e}"))?;
5656
Ok(connection)
5757
}
5858

server/src/appstate.rs

-9
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,6 @@ impl AppState {
9494
};
9595
store.set_handle_commit(Box::new(send_commit));
9696

97-
if let Some(host) = &config.opts.smpt_host {
98-
store
99-
.set_smtp_config(SmtpConfig {
100-
host: host.clone(),
101-
port: config.opts.smpt_port,
102-
})
103-
.await?;
104-
};
105-
10697
// If the user changes their server_url, the drive will not exist.
10798
// In this situation, we should re-build a new drive from scratch.
10899
if should_initialize {

0 commit comments

Comments
 (0)