1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-06-15 23:39:56 -04:00

move back to serial

This commit is contained in:
Darien Raymond
2018-11-03 13:03:02 +01:00
parent 128a90b98b
commit 77c03f0da5
12 changed files with 31 additions and 32 deletions

View File

@@ -5,10 +5,9 @@ import (
"sync"
"time"
"v2ray.com/core/common/vio"
"v2ray.com/core/common"
"v2ray.com/core/common/protocol"
"v2ray.com/core/common/serial"
"v2ray.com/core/common/task"
)
@@ -66,7 +65,7 @@ func (v *TimedUserValidator) generateNewHashes(nowSec protocol.Timestamp, user *
genBeginSec = nowSec - cacheDurationSec
}
for ts := genBeginSec; ts <= genEndSec; ts++ {
common.Must2(vio.WriteUint64(idHash, uint64(ts)))
common.Must2(serial.WriteUint64(idHash, uint64(ts)))
idHash.Sum(hashValue[:0])
idHash.Reset()