@@ -38,6 +38,7 @@ type tailnetConn interface {
38
38
//
39
39
// 1) run the Coordinate API and pass node information back and forth
40
40
// 2) stream DERPMap updates and program the Conn
41
+ // 3) Send network telemetry events
41
42
//
42
43
// These functions share the same websocket, and so are combined here so that if we hit a problem
43
44
// we tear the whole thing down and start over with a new websocket.
@@ -58,7 +59,6 @@ type tailnetAPIConnector struct {
58
59
coordinateURL string
59
60
dialOptions * websocket.DialOptions
60
61
conn tailnetConn
61
- customDialFn func () (proto.DRPCTailnetClient ,error )
62
62
63
63
clientMu sync.RWMutex
64
64
client proto.DRPCTailnetClient
@@ -125,10 +125,6 @@ var permanentErrorStatuses = []int{
125
125
}
126
126
127
127
func (tac * tailnetAPIConnector )dial () (proto.DRPCTailnetClient ,error ) {
128
- if tac .customDialFn != nil {
129
- return tac .customDialFn ()
130
- }
131
-
132
128
tac .logger .Debug (tac .ctx ,"dialing Coder tailnet v2+ API" )
133
129
// nolint:bodyclose
134
130
ws ,res ,err := websocket .Dial (tac .ctx ,tac .coordinateURL ,tac .dialOptions )