pub fn should_create_snapshot(
local_seq: u64,
last_snapshot_seq: Option<u64>,
hours_since_snapshot: Option<u64>,
) -> boolExpand description
Check whether it’s time to create a new snapshot.
Returns true if:
changesets_since_snapshot>= the changeset threshold (100), ORhours_since_snapshot>= the time threshold (24h), OR- No snapshot has ever been created (
last_snapshot_seqis None) AND at least one changeset has been pushed.