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:
parent
53a8a02738
commit
1978b98812
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user