Skip to content

Commit b7822b3

Browse files
committed
updated comments
1 parent 4e5f36e commit b7822b3

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

coderd/inboxnotifications.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func (api *API) watchInboxNotifications(rw http.ResponseWriter, r *http.Request)
219219
encoder := wsjson.NewEncoder[codersdk.GetInboxNotificationResponse](conn, websocket.MessageText)
220220
defer encoder.Close(websocket.StatusNormalClosure)
221221

222-
// log the initial connection
222+
// Log the request immediately instead of after it completes.
223223
httpmw.FromContext(ctx).WriteLog(ctx, http.StatusAccepted)
224224

225225
for {

coderd/provisionerjobs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ func (f *logFollower) follow() {
554554
return
555555
}
556556

557-
// log the initial connection
557+
// Log the request immediately instead of after it completes.
558558
httpmw.FromContext(f.ctx).WriteLog(f.ctx, http.StatusAccepted)
559559

560560
// no need to wait if the job is done

coderd/workspaceagents.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ func (api *API) workspaceAgentLogs(rw http.ResponseWriter, r *http.Request) {
555555
t := time.NewTicker(recheckInterval)
556556
defer t.Stop()
557557

558-
// log the initial connection
558+
// Log the request immediately instead of after it completes.
559559
httpmw.FromContext(ctx).WriteLog(ctx, http.StatusAccepted)
560560

561561
go func() {
@@ -931,7 +931,7 @@ func (api *API) derpMapUpdates(rw http.ResponseWriter, r *http.Request) {
931931
encoder := wsjson.NewEncoder[*tailcfg.DERPMap](ws, websocket.MessageBinary)
932932
defer encoder.Close(websocket.StatusGoingAway)
933933

934-
// log the initial connection
934+
// Log the request immediately instead of after it completes.
935935
httpmw.FromContext(ctx).WriteLog(ctx, http.StatusAccepted)
936936

937937
go func(ctx context.Context) {
@@ -1321,7 +1321,7 @@ func (api *API) watchWorkspaceAgentMetadata(
13211321
sendTicker := time.NewTicker(sendInterval)
13221322
defer sendTicker.Stop()
13231323

1324-
// log the initial connection
1324+
// Log the request immediately instead of after it completes.
13251325
httpmw.FromContext(ctx).WriteLog(ctx, http.StatusAccepted)
13261326

13271327
// Send initial metadata.

enterprise/coderd/provisionerdaemons.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ func (api *API) provisionerDaemonServe(rw http.ResponseWriter, r *http.Request)
377377
},
378378
})
379379

380-
// log the initial connection
380+
// Log the request immediately instead of after it completes.
381381
httpmw.FromContext(ctx).WriteLog(ctx, http.StatusAccepted)
382382

383383
err = server.Serve(ctx, session)

0 commit comments

Comments
 (0)