1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

increase delete buffer size in userset

This commit is contained in:
V2Ray 2015-09-15 13:00:42 +02:00
parent 53a8a02738
commit 1978b98812

View File

@ -42,7 +42,7 @@ func (us *TimedUserSet) updateUserHash(tick <-chan time.Time) {
now := time.Now().UTC()
lastSec := now.Unix() - cacheDurationSec
hash2Remove := make(chan hashEntry, cacheDurationSec*2*len(us.validUserIds))
hash2Remove := make(chan hashEntry, cacheDurationSec*3*len(us.validUserIds))
lastSec2Remove := now.Unix()
for {
now := <-tick