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

Commit6ac5911

Browse files
committed
updated comments
1 parentda9a2b9 commit6ac5911

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
deferencoder.Close(websocket.StatusNormalClosure)
221221

222-
//log theinitial connection
222+
//Log therequest 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 theinitial connection
557+
//Log therequest 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
defert.Stop()
557557

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

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

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

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

1324-
//log theinitial connection
1324+
//Log therequest 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 theinitial connection
380+
//Log therequest 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)

[8]ページ先頭

©2009-2025 Movatter.jp