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

Method New

tailnet/controllers.go:731–737  ·  view source on GitHub ↗
(client TelemetryClient)

Source from the content-addressed store, hash-verified

729}
730
731func (b *BasicTelemetryController) New(client TelemetryClient) {
732 b.Lock()
733 defer b.Unlock()
734 b.client = client
735 b.unavailable = false
736 b.logger.Debug(context.Background(), "new telemetry client connected to controller")
737}
738
739func (b *BasicTelemetryController) SendTelemetryEvent(event *proto.TelemetryEvent) {
740 b.Lock()

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45