Skip to content

Commit ce4a2f6

Browse files
committed
Reset next update time for failed orders on reload.
Some failures can be addressed by a configuration change, so we need to reschedule updates for the inherited failed orders after reload.
1 parent f98716f commit ce4a2f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/state/certificate.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ where
7777
type Target<A: Allocator + Clone> = CertificateContextInner<A>;
7878

7979
fn try_clone_in<A: Allocator + Clone>(&self, alloc: A) -> Result<Self::Target<A>, AllocError> {
80-
let state = if self.is_ready() {
81-
CertificateState::Ready
80+
let (state, next) = if self.is_ready() {
81+
(CertificateState::Ready, self.next)
8282
} else {
83-
CertificateState::Pending
83+
(CertificateState::Pending, Default::default())
8484
};
8585

8686
let mut chain = Vec::new_in(alloc.clone());
@@ -99,7 +99,7 @@ where
9999
chain,
100100
pkey,
101101
valid: self.valid.clone(),
102-
next: self.next,
102+
next,
103103
})
104104
}
105105
}

0 commit comments

Comments
 (0)