Skip to content

Commit ee3d623

Browse files
Simon-Lauxlink2xt
andauthored
Apply suggestions from code review
Co-authored-by: link2xt <[email protected]>
1 parent a625f42 commit ee3d623

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
@@ -437,7 +437,7 @@ impl Context {
437437
self.scheduler.maybe_network().await;
438438
}
439439

440-
/// Do a background fetch
440+
/// Does a background fetch
441441
/// pauses the scheduler and does one imap fetch, then unpauses and returns
442442
pub async fn background_fetch(&self) -> Result<()> {
443443
if !(self.is_configured().await?) {
@@ -464,7 +464,7 @@ impl Context {
464464

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

470470
info!(

0 commit comments

Comments
 (0)