Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coder/coder
/ nextAttemptNumber
Method
nextAttemptNumber
coderd/x/chatd/chatdebug/recorder.go:45–50 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
43
}
44
45
func
(s *attemptSink) nextAttemptNumber() int {
46
if
s == nil {
47
panic(
"chatdebug: nil attemptSink"
)
48
}
49
return
int(s.attemptCounter.Add(1))
50
}
51
52
func
(s *attemptSink) record(a Attempt) {
53
s.mu.Lock()
Callers
2
TestRecordingBody_SSEConcurrentReadCloseNoDeadlock
Function · 0.95
RoundTrip
Method · 0.80
Calls
1
Add
Method · 0.65
Tested by
1
TestRecordingBody_SSEConcurrentReadCloseNoDeadlock
Function · 0.76