Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/envd/internal/api/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (a *API) PostInit(w http.ResponseWriter, r *http.Request) {
}
}

go func() { //nolint:contextcheck // TODO: fix this later
go func() { //nolint:contextcheck // MMDS re-poll must outlive the /init HTTP response, so it can't derive from r.Context
ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
defer cancel()
host.PollForMMDSOpts(ctx, a.mmdsChan, a.defaults.EnvVars)
Expand Down
2 changes: 1 addition & 1 deletion packages/envd/internal/services/process/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (s *Service) handleStart(ctx context.Context, req *connect.Request[rpc.Star
procCtx, cancelProc = context.WithTimeout(procCtx, requestTimeout)
}

proc, err := handler.New( //nolint:contextcheck // TODO: fix this later
proc, err := handler.New( //nolint:contextcheck // procCtx is intentionally decoupled from the request ctx so the process outlives the RPC (see comment above)
procCtx,
u,
req.Msg,
Expand Down