MCPcopy Create free account
hub / github.com/coder/coder / start

Method start

vpn/speaker.go:142–145  ·  view source on GitHub ↗

start starts the serialzation/deserialization. It's important this happens after any assignments of the speaker to its owning Tunnel or Manager, since the mutex is copied and that is not threadsafe. nolint: revive

()

Source from the content-addressed store, hash-verified

140// the mutex is copied and that is not threadsafe.
141// nolint: revive
142func (s *speaker[_, _, _]) start() {
143 s.serdes.start()
144 go s.recvFromSerdes()
145}
146
147func (s *speaker[S, R, _]) recvFromSerdes() {
148 defer close(s.recvLoopDone)

Callers

nothing calls this directly

Calls 2

recvFromSerdesMethod · 0.95
startMethod · 0.65

Tested by

no test coverage detected