Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoEdgeLab/EdgeNode
/ Ack
Method
Ack
internal/utils/ratelimit/counter.go:34–41 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
32
}
33
34
func
(this *Counter) Ack() bool {
35
select
{
36
case
this.sem <- zero.New():
37
return
true
38
case
<-this.done:
39
return
false
40
}
41
}
42
43
func
(this *Counter) Release() {
44
select
{
Callers
4
TestCounter_ACK
Function · 0.45
TestCounter_Release
Function · 0.45
TestBandwidth
Function · 0.45
TestBandwidth_0
Function · 0.45
Calls
1
New
Function · 0.92
Tested by
4
TestCounter_ACK
Function · 0.36
TestCounter_Release
Function · 0.36
TestBandwidth
Function · 0.36
TestBandwidth_0
Function · 0.36