Skip to content

Commit 43767ca

Browse files
committed
ci: drop nolint directive unused by golangci-lint v2.8.0
The gosec G118 rule only exists in newer golangci-lint versions; with the v2.8.0 pinned in CI the suppression is unused and rejected by nolintlint.
1 parent d6874a6 commit 43767ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

proxy/proxycall.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func (proxy *BeaconProxy) runProxyAttempts(r *http.Request, callContext *proxyCa
220220
launchAttempt := func(endpoint *pool.Client) {
221221
// the cancel funcs are not deferred on purpose: the winning attempt's context must
222222
// stay alive for body streaming, it gets cleaned up with callContext
223-
attemptContext, attemptCancel := context.WithCancel(callContext.context) //nolint:gosec // G118: losing attempts are cancelled via abandonAttempts, the winner with callContext
223+
attemptContext, attemptCancel := context.WithCancel(callContext.context)
224224
attemptCancels[endpoint] = attemptCancel
225225
inflight++
226226

0 commit comments

Comments
 (0)