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

another fixed how bounds for when to generate historical identities are created

parent a1c5be91
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
...@@ -152,8 +152,8 @@ func (t *manager) AddIdentityWithHistory(id *id.ID, validUntil, historicalBeginn ...@@ -152,8 +152,8 @@ func (t *manager) AddIdentityWithHistory(id *id.ID, validUntil, historicalBeginn
} }
if now := time.Now(); historicalBeginning.After(now) || if now := time.Now(); historicalBeginning.After(now) ||
now.Sub(historicalBeginning) < 1*time.Minute { now.Sub(historicalBeginning) < time.Duration(ephemeral.Period) {
historicalBeginning = now.Add(-1 * time.Minute) historicalBeginning = now.Add(-time.Duration(ephemeral.Period))
} }
t.newIdentity <- TrackedID{ t.newIdentity <- TrackedID{
......
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