delete then add

pull/432/head
Darien Raymond 2017-04-06 11:41:57 +02:00
parent f37f03f476
commit 65c6972eb5
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 1 deletions

View File

@ -64,8 +64,8 @@ func (v *TimedUserValidator) generateNewHashes(nowSec protocol.Timestamp, idx in
idHash.Sum(hashValueRemoval[:0])
idHash.Reset()
v.userHash[hashValue] = &indexTimePair{idx, entry.lastSec}
delete(v.userHash, hashValueRemoval)
v.userHash[hashValue] = &indexTimePair{idx, entry.lastSec}
entry.lastSec++
entry.lastSecRemoval++