Skip to content

Commit fa46e98

Browse files
committed
update
1 parent f2734bd commit fa46e98

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ V2Ray 是一个翻墙工具包,用于简化和复用其它翻墙工具,加
1919
## 联系方式
2020
公开的建议或意见请发 [Issue](https://github.com/v2ray/v2ray-core/issues),发 Issue 之前请先阅读 [Issue 指引](https://github.com/V2Ray/v2ray-core/blob/master/spec/issue.md)
2121

22-
私下联系:admin@v2ray.com
22+
私下联系:love@v2ray.com
2323

2424
## 合作机会
2525
所有被标记为“[Help Wanted](https://github.com/v2ray/v2ray-core/labels/help%20wanted)”的 Issue 都接受 Pull Request,如果你对本项目感兴趣并想做点贡献,请挑选其中之一完善之,不甚感激。

userset.go

-8
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,11 @@ func (us *TimedUserSet) updateUserHash(tick <-chan time.Time) {
4141

4242
hash2Remove := make(chan hashEntry, cacheDurationSec*2*len(us.validUserIds))
4343
lastSec2Remove := now.Unix()
44-
log.Debug("Start updating")
4544
for {
4645
now := <-tick
4746
nowSec := now.UTC().Unix()
4847

4948
remove2Sec := nowSec - cacheDurationSec
50-
51-
log.Debug("remove2Sec %d, to %d", lastSec2Remove, remove2Sec)
52-
53-
5449
if remove2Sec > lastSec2Remove {
5550
for lastSec2Remove+1 < remove2Sec {
5651
entry := <-hash2Remove
@@ -59,13 +54,10 @@ func (us *TimedUserSet) updateUserHash(tick <-chan time.Time) {
5954
}
6055
}
6156

62-
log.Debug("LastSec %d, to %d", lastSec, nowSec + updateIntervalSec)
63-
6457
for lastSec < nowSec + cacheDurationSec {
6558
for idx, id := range us.validUserIds {
6659
idHash := id.TimeHash(lastSec)
6760
hash2Remove <- hashEntry{string(idHash), lastSec}
68-
log.Debug("Hash: %v", idHash)
6961
us.userHashes[string(idHash)] = idx
7062
}
7163
lastSec ++

0 commit comments

Comments
 (0)