Skip to content

Commit 382fc75

Browse files
authored
Add more docs (#5174)
Add some docs to smtp functions
1 parent 92fc9ea commit 382fc75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/smtp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ async fn send_mdns(context: &Context, connection: &mut Smtp) -> Result<()> {
618618

619619
let more_mdns = send_mdn(context, connection).await?;
620620
if !more_mdns {
621-
// No more MDNs to send.
621+
// No more MDNs to send or one of them failed.
622622
return Ok(());
623623
}
624624
}
@@ -752,7 +752,7 @@ async fn send_mdn_msg_id(
752752
}
753753
}
754754

755-
/// Tries to send a single MDN. Returns false if there are no MDNs to send.
755+
/// Tries to send a single MDN. Returns true if more MDNs should be sent.
756756
async fn send_mdn(context: &Context, smtp: &mut Smtp) -> Result<bool> {
757757
let mdns_enabled = context.get_config_bool(Config::MdnsEnabled).await?;
758758
if !mdns_enabled {

0 commit comments

Comments
 (0)