acme: fix bad nonce retry counter
Actually return the error on the 3rd try. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
a1b71c3c7d
commit
b41f9e9fec
@ -662,9 +662,10 @@ const fn retry() -> Retry {
|
|||||||
impl Retry {
|
impl Retry {
|
||||||
fn tick(&mut self) -> Result<(), Error> {
|
fn tick(&mut self) -> Result<(), Error> {
|
||||||
if self.0 >= 3 {
|
if self.0 >= 3 {
|
||||||
Error::Client(format!("kept getting a badNonce error!"));
|
Err(Error::Client(format!("kept getting a badNonce error!")))
|
||||||
|
} else {
|
||||||
|
self.0 += 1;
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
self.0 += 1;
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user