MCPcopy Index your code
hub / github.com/coder/coder / release

Method release

coderd/x/chatd/chatadvisor/runtime.go:162–164  ·  view source on GitHub ↗

release returns a previously acquired use to the pool. Callers must invoke this at most once per successful tryAcquire when the advisor call did not complete successfully, so a transient provider failure does not permanently consume quota for the run.

()

Source from the content-addressed store, hash-verified

160// call did not complete successfully, so a transient provider failure
161// does not permanently consume quota for the run.
162func (rt *Runtime) release() {
163 rt.used.Add(-1)
164}

Callers 3

RunAdvisorMethod · 0.95
dialWithLazyValidationFunction · 0.80
RunFunction · 0.80

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected