We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentaa9e8de commit2fa36d2Copy full SHA for 2fa36d2
codersdk/workspaceagents.go
@@ -174,9 +174,7 @@ func (c *Client) DialWorkspaceAgent(ctx context.Context, agentID uuid.UUID, opti
174
options.Logger.Debug(ctx,"failed to dial",slog.Error(err))
175
continue
176
}
177
-ctx,wsNetConn:=websocketNetConn(ctx,ws,websocket.MessageBinary)
178
-deferwsNetConn.Close()
179
-sendNode,errChan:=tailnet.ServeCoordinator(wsNetConn,func(node []*tailnet.Node)error {
+sendNode,errChan:=tailnet.ServeCoordinator(websocket.NetConn(ctx,ws,websocket.MessageBinary),func(node []*tailnet.Node)error {
180
returnconn.UpdateNodes(node)
181
})
182
conn.SetNodeCallback(sendNode)