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

Method ReadyForHandshake

tailnet/test/peer.go:140–153  ·  view source on GitHub ↗
(peer uuid.UUID)

Source from the content-addressed store, hash-verified

138}
139
140func (p *Peer) ReadyForHandshake(peer uuid.UUID) {
141 p.t.Helper()
142
143 req := &proto.CoordinateRequest{ReadyForHandshake: []*proto.CoordinateRequest_ReadyForHandshake{{
144 Id: peer[:],
145 }}}
146 select {
147 case <-p.ctx.Done():
148 p.t.Errorf("timeout sending ready for handshake for %s", p.name)
149 return
150 case p.reqs <- req:
151 return
152 }
153}
154
155func (p *Peer) Disconnect() {
156 p.t.Helper()

Callers 2

ReadyForHandshakeTestFunction · 0.95

Calls 3

HelperMethod · 0.65
DoneMethod · 0.45
ErrorfMethod · 0.45

Tested by

no test coverage detected