Skip to content

Commit ef439fe

Browse files
committed
chore: Fix PR comments
1 parent f61c2ad commit ef439fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

coderd/workspaceagents.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func (api *API) workspaceAgentListen(rw http.ResponseWriter, r *http.Request) {
151151
resource, err := api.Database.GetWorkspaceResourceByID(r.Context(), workspaceAgent.ResourceID)
152152
if err != nil {
153153
httpapi.Write(rw, http.StatusBadRequest, httpapi.Response{
154-
Message: fmt.Sprintf("accept websocket: %s", err),
154+
Message: fmt.Sprintf("get workspace by resource id: %s", err),
155155
})
156156
return
157157
}
@@ -377,7 +377,6 @@ func (api *API) workspaceAgentPTY(rw http.ResponseWriter, r *http.Request) {
377377
return
378378
}
379379

380-
// Accept text connections, because it's more developer friendly.
381380
ctx, wsNetConn := websocketNetConn(r.Context(), conn, websocket.MessageBinary)
382381
defer wsNetConn.Close() // Also closes conn.
383382

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy