Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b056400

Browse files
committed
Fix dial agent syntax
1 parent cd2d12e commit b056400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/workspaceagents.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func (api *API) workspaceAgentPTY(rw http.ResponseWriter, r *http.Request) {
419419
// dialWorkspaceAgent connects to a workspace agent by ID. Only rely on
420420
// r.Context() for cancellation if it's use is safe or r.Hijack() has
421421
// not been performed.
422-
func (api *API) dialWorkspaceAgent(ctx context.Context, r *http.Request, agentID uuid.UUID) (*agent.Conn, error) {
422+
func (api *API) dialWorkspaceAgent(r *http.Request, agentID uuid.UUID) (*agent.Conn, error) {
423423
client, server := provisionersdk.TransportPipe()
424424
ctx, cancelFunc := context.WithCancel(context.Background())
425425
go func() {

0 commit comments

Comments
 (0)