MCPcopy 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
70func (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

TestWorkspaceAITaskFunction · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 1

TestWorkspaceAITaskFunction · 0.76