Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ Reset
Method
Reset
coderd/coderdtest/usage.go:70–76 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
68
}
69
70
func
(u *UsageInserter) Reset() {
71
u.Lock()
72
defer
u.Unlock()
73
u.seenHeartbeats =
map
[string]
struct
{}{}
74
u.discreteEvents = []usagetypes.DiscreteEvent{}
75
u.heartbeatEvents = []usagetypes.HeartbeatEvent{}
76
}
Callers
1
TestWorkspaceAITask
Function · 0.95
Calls
2
Lock
Method · 0.45
Unlock
Method · 0.45
Tested by
1
TestWorkspaceAITask
Function · 0.76