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

Method RemoveTunnel

tailnet/test/peer.go:104–114  ·  view source on GitHub ↗
(other uuid.UUID)

Source from the content-addressed store, hash-verified

102}
103
104func (p *Peer) RemoveTunnel(other uuid.UUID) {
105 p.t.Helper()
106 req := &proto.CoordinateRequest{RemoveTunnel: &proto.CoordinateRequest_Tunnel{Id: tailnet.UUIDToByteSlice(other)}}
107 select {
108 case <-p.ctx.Done():
109 p.t.Errorf("timeout removing tunnel for %s", p.name)
110 return
111 case p.reqs <- req:
112 return
113 }
114}
115
116func (p *Peer) UpdateDERP(derp int32) {
117 p.t.Helper()

Calls 4

UUIDToByteSliceFunction · 0.92
HelperMethod · 0.65
DoneMethod · 0.45
ErrorfMethod · 0.45