Skip to content

Commit 5cdd5e0

Browse files
Simon-Lauxlink2xt
authored andcommitted
Apply suggestions from code review
Co-authored-by: link2xt <link2xt@testrun.org>
1 parent f493d6b commit 5cdd5e0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deltachat-ffi/deltachat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3152,7 +3152,7 @@ void dc_accounts_maybe_network_lost (dc_accounts_t* accounts);
31523152

31533153

31543154
/**
3155-
* Perform a Background fetch for all accounts in parallel with a timeout.
3155+
* Perform a background fetch for all accounts in parallel with a timeout.
31563156
* Pauses the scheduler, fetches messages from imap and then resumes the scheduler.
31573157
*
31583158
* dc_accounts_background_fetch_with_timeout() was created for the iOS Background fetch.
@@ -3161,7 +3161,7 @@ void dc_accounts_maybe_network_lost (dc_accounts_t* accounts);
31613161
* @param timeout The timeout in seconds
31623162
* @return Return 1 on success and 0 on failure (like timeout)
31633163
* But note that this only indicates that the fetch of all accounts was done before the timeout.
3164-
* To know wether it worked you need to look for the events.
3164+
* To know whether it worked you need to look for the events.
31653165
*/
31663166
int dc_accounts_background_fetch_with_timeout (dc_accounts_t* accounts, uint64_t timeout);
31673167

src/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ impl Context {
441441
self.scheduler.maybe_network().await;
442442
}
443443

444-
/// Do a background fetch
444+
/// Does a background fetch
445445
/// pauses the scheduler and does one imap fetch, then unpauses and returns
446446
pub async fn background_fetch(&self) -> Result<()> {
447447
if !(self.is_configured().await?) {
@@ -468,7 +468,7 @@ impl Context {
468468

469469
// update quota (to send warning if full)
470470
if let Err(err) = self.update_recent_quota(&mut connection).await {
471-
warn!(self, "Failed to update quota: {:#}.", err);
471+
warn!(self, "Failed to update quota: {err:#}.");
472472
}
473473

474474
info!(

0 commit comments

Comments
 (0)