Skip to content

Commit 8511fd9

Browse files
committed
fixup: Respond to review comments
1 parent 27bcf8a commit 8511fd9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/fixture/tmpnet/process_runtime.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,11 @@ func (p *ProcessRuntime) waitForProcessContext(ctx context.Context) error {
229229
// process liveness, the node's process context will be refreshed if
230230
// live or cleared if not running.
231231
func (p *ProcessRuntime) getProcess() (*os.Process, error) {
232+
// This context is not used but a non-nil value must be supplied to satisfy the linter
233+
ctx := context.TODO()
232234
// Read the process context to ensure freshness. The node may have
233235
// stopped or been restarted since last read.
234-
if err := p.readState(context.Background()); err != nil {
236+
if err := p.readState(ctx); err != nil {
235237
return nil, fmt.Errorf("failed to read process context: %w", err)
236238
}
237239

0 commit comments

Comments
 (0)