Skip to content

Commit 2fa36d2

Browse files
committed
Revert one change
1 parent aa9e8de commit 2fa36d2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

codersdk/workspaceagents.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,7 @@ func (c *Client) DialWorkspaceAgent(ctx context.Context, agentID uuid.UUID, opti
174174
options.Logger.Debug(ctx, "failed to dial", slog.Error(err))
175175
continue
176176
}
177-
ctx, wsNetConn := websocketNetConn(ctx, ws, websocket.MessageBinary)
178-
defer wsNetConn.Close()
179-
sendNode, errChan := tailnet.ServeCoordinator(wsNetConn, func(node []*tailnet.Node) error {
177+
sendNode, errChan := tailnet.ServeCoordinator(websocket.NetConn(ctx, ws, websocket.MessageBinary), func(node []*tailnet.Node) error {
180178
return conn.UpdateNodes(node)
181179
})
182180
conn.SetNodeCallback(sendNode)

0 commit comments

Comments
 (0)