Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoEdgeLab/EdgeNode
/ Size
Method
Size
internal/utils/sets/set_fixed.go:55–59 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
53
}
54
55
func
(this *FixedSet) Size() int {
56
this.locker.RLock()
57
defer
this.locker.RUnlock()
58
return
len(this.keys)
59
}
60
61
func
(this *FixedSet) Reset() {
62
this.locker.Lock()
Callers
2
TestNewFixedSet
Function · 0.45
TestFixedSet_Reset
Function · 0.45
Calls
2
RLock
Method · 0.80
RUnlock
Method · 0.80
Tested by
2
TestNewFixedSet
Function · 0.36
TestFixedSet_Reset
Function · 0.36