Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2fa36d2

Browse files
committed
Revert one change
1 parentaa9e8de commit2fa36d2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎codersdk/workspaceagents.go‎

Lines changed: 1 addition & 3 deletions
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-
deferwsNetConn.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
returnconn.UpdateNodes(node)
181179
})
182180
conn.SetNodeCallback(sendNode)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp