Skip to content
Snippets Groups Projects
Commit 9fdb2c34 authored by benjamin's avatar benjamin
Browse files

fixed how bounds for when to generate historical identities are created

parent ab7b3268
No related branches found
No related tags found
2 merge requests!510Release,!428built the system to sequentually pick up old ephemerals, breaks interfaces and tests
......@@ -151,6 +151,11 @@ func (t *manager) AddIdentityWithHistory(id *id.ID, validUntil, historicalBeginn
historicalBeginning = retention
}
if now := time.Now(); historicalBeginning.After(now) ||
now.Sub(historicalBeginning) < 1*time.Minute {
historicalBeginning = now.Add(-1 * time.Minute)
}
t.newIdentity <- TrackedID{
NextGeneration: netTime.Now().Add(-time.Second),
LastGeneration: historicalBeginning,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment