tokio-xmpp: clippy run
skip-changelog Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
1b635854ad
commit
23c947d081
14 changed files with 54 additions and 73 deletions
|
|
@ -168,7 +168,7 @@ impl StanzaStream {
|
|||
// TODO: auth errors should probably be fatal??
|
||||
log::error!("Failed to connect: {}. Retrying in {:?}.", e, delay);
|
||||
tokio::time::sleep(delay).await;
|
||||
delay = delay * 2;
|
||||
delay *= 2;
|
||||
if delay > MAX_DELAY {
|
||||
delay = MAX_DELAY;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue