We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27bcf8a commit 8511fd9Copy full SHA for 8511fd9
tests/fixture/tmpnet/process_runtime.go
@@ -229,9 +229,11 @@ func (p *ProcessRuntime) waitForProcessContext(ctx context.Context) error {
229
// process liveness, the node's process context will be refreshed if
230
// live or cleared if not running.
231
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()
234
// Read the process context to ensure freshness. The node may have
235
// stopped or been restarted since last read.
- if err := p.readState(context.Background()); err != nil {
236
+ if err := p.readState(ctx); err != nil {
237
return nil, fmt.Errorf("failed to read process context: %w", err)
238
}
239
0 commit comments