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
Branches
Tags
Loading
......@@ -152,8 +152,8 @@ func (t *manager) AddIdentityWithHistory(id *id.ID, validUntil, historicalBeginn
}
if now := time.Now(); historicalBeginning.After(now) ||
now.Sub(historicalBeginning) < 1*time.Minute {
historicalBeginning = now.Add(-1 * time.Minute)
now.Sub(historicalBeginning) < time.Duration(ephemeral.Period) {
historicalBeginning = now.Add(-time.Duration(ephemeral.Period))
}
t.newIdentity <- TrackedID{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment