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

Method Disconnect

tailnet/test/peer.go:155–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153}
154
155func (p *Peer) Disconnect() {
156 p.t.Helper()
157 req := &proto.CoordinateRequest{Disconnect: &proto.CoordinateRequest_Disconnect{}}
158 select {
159 case <-p.ctx.Done():
160 p.t.Errorf("timeout updating node for %s", p.name)
161 return
162 case p.reqs <- req:
163 return
164 }
165}
166
167func (p *Peer) AssertEventuallyHasDERP(other uuid.UUID, derp int32) {
168 p.t.Helper()

Calls 3

HelperMethod · 0.65
DoneMethod · 0.45
ErrorfMethod · 0.45