pub async fn run_prune_pass(
self_id: &PeerId,
storage: &Arc<LmdbStorage>,
paid_list: &Arc<PaidList>,
p2p_node: &Arc<P2PNode>,
config: &ReplicationConfig,
) -> PruneResultExpand description
Execute post-cycle responsibility pruning.
For each stored record K:
- If
IsResponsible(self, K): clearRecordOutOfRangeFirstSeen. - If not responsible: set timestamp if not already set; delete if the
timestamp is at least
PRUNE_HYSTERESIS_DURATIONold.
For each PaidForList entry K:
- If self is in
PaidCloseGroup(K): clearPaidOutOfRangeFirstSeen. - If not in group: set timestamp if not already set; remove entry if the
timestamp is at least
PRUNE_HYSTERESIS_DURATIONold.