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

Method Recv

coderd/tailnet.go:616–623  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

614}
615
616func (a *pollingDERPClient) Recv() (*tailcfg.DERPMap, error) {
617 select {
618 case <-a.ctx.Done():
619 return nil, a.ctx.Err()
620 case dm := <-a.ch:
621 return dm, nil
622 }
623}
624
625func (a *pollingDERPClient) pollDERP() {
626 defer close(a.loopDone)

Callers

nothing calls this directly

Calls 2

ErrMethod · 0.80
DoneMethod · 0.45

Tested by

no test coverage detected