From e21cacbe37d6f5d3f8d92a3b2212fe203cc99a8e Mon Sep 17 00:00:00 2001 From: LucaCappelletti94 Date: Sat, 17 Oct 2026 21:15:22 +0200 Subject: [PATCH] Await the peer step beside announce so a build without peer has no empty async fn --- crates/connetto-client/src/enrolment/task.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/connetto-client/src/enrolment/task.rs b/crates/connetto-client/src/enrolment/task.rs index 6016c230..5b3e987a 100644 --- a/crates/connetto-client/src/enrolment/task.rs +++ b/crates/connetto-client/src/enrolment/task.rs @@ -886,7 +886,9 @@ impl Run { self.take_lists(lists).await; // A list naming the new certificate has already revoked or withdrawn it. if self.held.is_some() { - self.announce(standing).await; + self.announce(standing); + #[cfg(feature = "peer")] + self.peer_transition(standing).await; } Ok(()) } @@ -946,9 +948,9 @@ impl Run { Ok(standing) } - /// Publish the certificate just kept, check its window and start the peer - /// link (lifecycle row "Grant received"). - async fn announce(&mut self, standing: Standing) { + /// Publish the certificate just kept and check its window (lifecycle row + /// "Grant received"). + fn announce(&mut self, standing: Standing) { self.publish(); // The server just issued it, so a window that does not hold it now // says the local clock is off. @@ -957,8 +959,6 @@ impl Run { Standing::Expired => self.clock_outside(true), _ => self.enroller.clock_off.store(false, Ordering::Release), } - #[cfg(feature = "peer")] - self.peer_transition(standing).await; } /// Delete a certificate whose issuer the root revoked, keep the key, and