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

Method SendErr

tailnet/controllers.go:322–327  ·  view source on GitHub ↗

SendErr is not part of the CloserWaiter interface, and is intended to be called internally, or by Controllers that use BasicCoordinationController in composition. It triggers Wait() to report the error if an error has not already been reported.

(err error)

Source from the content-addressed store, hash-verified

320// by Controllers that use BasicCoordinationController in composition. It triggers Wait() to
321// report the error if an error has not already been reported.
322func (c *BasicCoordination) SendErr(err error) {
323 select {
324 case c.errChan <- err:
325 default:
326 }
327}
328
329func (c *BasicCoordination) respLoop() {
330 defer func() {

Callers 9

NewCoordinationMethod · 0.95
respLoopMethod · 0.95
NewMethod · 0.80
ensureAgentMethod · 0.80
doExpireOldAgentsMethod · 0.80
NewMethod · 0.80
AddDestinationMethod · 0.80
RemoveDestinationMethod · 0.80
SyncDestinationsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected