mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-04 17:27:23 -05:00
delete then add
This commit is contained in:
parent
f37f03f476
commit
65c6972eb5
@ -64,8 +64,8 @@ func (v *TimedUserValidator) generateNewHashes(nowSec protocol.Timestamp, idx in
|
|||||||
idHash.Sum(hashValueRemoval[:0])
|
idHash.Sum(hashValueRemoval[:0])
|
||||||
idHash.Reset()
|
idHash.Reset()
|
||||||
|
|
||||||
v.userHash[hashValue] = &indexTimePair{idx, entry.lastSec}
|
|
||||||
delete(v.userHash, hashValueRemoval)
|
delete(v.userHash, hashValueRemoval)
|
||||||
|
v.userHash[hashValue] = &indexTimePair{idx, entry.lastSec}
|
||||||
|
|
||||||
entry.lastSec++
|
entry.lastSec++
|
||||||
entry.lastSecRemoval++
|
entry.lastSecRemoval++
|
||||||
|
Loading…
Reference in New Issue
Block a user