mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 16:31:18 +00:00
parent
b8938d1c5f
commit
015d80de7d
@ -263,15 +263,6 @@ impl Pending {
|
||||
self.remove(&PendingItem::PersonListNeverPublished(*list));
|
||||
}
|
||||
|
||||
// If 90 days old, should be re-synced
|
||||
if metadata.event_created_at.0 + t90days < now.0 {
|
||||
self.insert(PendingItem::PersonListNotPublishedRecently(*list));
|
||||
continue;
|
||||
} else {
|
||||
self.remove(&PendingItem::PersonListNotPublishedRecently(*list));
|
||||
// remove if present
|
||||
}
|
||||
|
||||
// If mismatched, should be re-synced
|
||||
let stored_hash = GLOBALS.storage.hash_person_list(*list)?;
|
||||
let last_event_hash = crate::people::hash_person_list_event(*list)?;
|
||||
@ -281,6 +272,15 @@ impl Pending {
|
||||
} else {
|
||||
self.remove(&PendingItem::PersonListOutOfSync(*list)); // remove if present
|
||||
}
|
||||
|
||||
// If 90 days old, should be re-synced
|
||||
if metadata.event_created_at.0 + t90days < now.0 {
|
||||
self.insert(PendingItem::PersonListNotPublishedRecently(*list));
|
||||
continue;
|
||||
} else {
|
||||
self.remove(&PendingItem::PersonListNotPublishedRecently(*list));
|
||||
// remove if present
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user