Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions crates/connetto-client/src/enrolment/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,9 @@ impl<L: Link> Run<L> {
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(())
}
Expand Down Expand Up @@ -946,9 +948,9 @@ impl<L: Link> Run<L> {
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.
Expand All @@ -957,8 +959,6 @@ impl<L: Link> Run<L> {
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
Expand Down
Loading