File tree 2 files changed +1
-9
lines changed
2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ V2Ray 是一个翻墙工具包,用于简化和复用其它翻墙工具,加
19
19
## 联系方式
20
20
公开的建议或意见请发 [ Issue] ( https://github.com/v2ray/v2ray-core/issues ) ,发 Issue 之前请先阅读 [ Issue 指引] ( https://github.com/V2Ray/v2ray-core/blob/master/spec/issue.md ) 。
21
21
22
- 私下联系:admin @v2ray.com
22
+ 私下联系:love @v2ray.com
23
23
24
24
## 合作机会
25
25
所有被标记为“[ Help Wanted] ( https://github.com/v2ray/v2ray-core/labels/help%20wanted ) ”的 Issue 都接受 Pull Request,如果你对本项目感兴趣并想做点贡献,请挑选其中之一完善之,不甚感激。
Original file line number Diff line number Diff line change @@ -41,16 +41,11 @@ func (us *TimedUserSet) updateUserHash(tick <-chan time.Time) {
41
41
42
42
hash2Remove := make (chan hashEntry , cacheDurationSec * 2 * len (us .validUserIds ))
43
43
lastSec2Remove := now .Unix ()
44
- log .Debug ("Start updating" )
45
44
for {
46
45
now := <- tick
47
46
nowSec := now .UTC ().Unix ()
48
47
49
48
remove2Sec := nowSec - cacheDurationSec
50
-
51
- log .Debug ("remove2Sec %d, to %d" , lastSec2Remove , remove2Sec )
52
-
53
-
54
49
if remove2Sec > lastSec2Remove {
55
50
for lastSec2Remove + 1 < remove2Sec {
56
51
entry := <- hash2Remove
@@ -59,13 +54,10 @@ func (us *TimedUserSet) updateUserHash(tick <-chan time.Time) {
59
54
}
60
55
}
61
56
62
- log .Debug ("LastSec %d, to %d" , lastSec , nowSec + updateIntervalSec )
63
-
64
57
for lastSec < nowSec + cacheDurationSec {
65
58
for idx , id := range us .validUserIds {
66
59
idHash := id .TimeHash (lastSec )
67
60
hash2Remove <- hashEntry {string (idHash ), lastSec }
68
- log .Debug ("Hash: %v" , idHash )
69
61
us .userHashes [string (idHash )] = idx
70
62
}
71
63
lastSec ++
You can’t perform that action at this time.
0 commit comments