Skip to content

Commit d2626b5

Browse files
committed
fixup
1 parent 3b473bc commit d2626b5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

codersdk/workspacesdk/connector.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ type tailnetConn interface {
3838
//
3939
// 1) run the Coordinate API and pass node information back and forth
4040
// 2) stream DERPMap updates and program the Conn
41+
// 3) Send network telemetry events
4142
//
4243
// These functions share the same websocket, and so are combined here so that if we hit a problem
4344
// we tear the whole thing down and start over with a new websocket.
@@ -58,7 +59,6 @@ type tailnetAPIConnector struct {
5859
coordinateURL string
5960
dialOptions *websocket.DialOptions
6061
conn tailnetConn
61-
customDialFn func() (proto.DRPCTailnetClient, error)
6262

6363
clientMu sync.RWMutex
6464
client proto.DRPCTailnetClient
@@ -125,10 +125,6 @@ var permanentErrorStatuses = []int{
125125
}
126126

127127
func (tac *tailnetAPIConnector) dial() (proto.DRPCTailnetClient, error) {
128-
if tac.customDialFn != nil {
129-
return tac.customDialFn()
130-
}
131-
132128
tac.logger.Debug(tac.ctx, "dialing Coder tailnet v2+ API")
133129
// nolint:bodyclose
134130
ws, res, err := websocket.Dial(tac.ctx, tac.coordinateURL, tac.dialOptions)

0 commit comments

Comments
 (0)