fix: Keep lowest expiry timestamp for discovered old keys

The comparison was inverted when extracting discover_old_signing_keys.
This commit is contained in:
Jade Ellis committed 2026-11-23 19:07:06 +00:00
1 parent 5f183b2849
commit a5a887d556
1 file changed
+1 -1
+1 -1
View File
@@ -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();
}
})