mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-24 01:17:34 +00:00
fix: Keep lowest expiry timestamp for discovered old keys
The comparison was inverted when extracting discover_old_signing_keys.
This commit is contained in:
1 file changed
+1
-1
@@ -294,7 +294,7 @@ impl Service {
|
||||
.entry(old_key_id)
|
||||
.and_modify(|current_old_key: &mut OldVerifyKey| {
|
||||
// Use the lowest expiry timestamp
|
||||
if current_old_key.expired_ts < old_key.expired_ts {
|
||||
if current_old_key.expired_ts > old_key.expired_ts {
|
||||
*current_old_key = old_key.clone();
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user