Skip to content

Commit

Permalink
linter version up (#10832)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Jun 21, 2024
1 parent 269bd3d commit 5eb2c2c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
if: runner.os == 'Linux'
uses: golangci/golangci-lint-action@v4
with:
version: v1.57.2
version: v1.59.1
skip-build-cache: true
args: --help

Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ linters:
- musttag
- contextcheck
- wrapcheck
- goerr113
- err113
- unparam
- makezero #TODO: enable me
- noctx #TODO: enable me
Expand Down
2 changes: 1 addition & 1 deletion cmd/devnet/scenarios/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (s *suite) runSteps(ctx context.Context, scenario *Scenario, steps []*Step)

var stepResult StepResult

ctx, stepResult = s.runStep(ctx, scenario, step, err, isFirst, isLast, logger)
ctx, stepResult = s.runStep(ctx, scenario, step, err, isFirst, isLast, logger) //nolint:fatcontext

switch {
case stepResult.Err == nil:
Expand Down
2 changes: 1 addition & 1 deletion erigon-lib/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ linters:
- musttag
- contextcheck
- wrapcheck
- goerr113
- err113
- unparam
- makezero
- testifylint #TODO: enable me
Expand Down
2 changes: 1 addition & 1 deletion erigon-lib/tools/golangci_lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

scriptDir=$(dirname "${BASH_SOURCE[0]}")
scriptName=$(basename "${BASH_SOURCE[0]}")
version="v1.57.2"
version="v1.59.1"

if [[ "$1" == "--install-deps" ]]
then
Expand Down
4 changes: 2 additions & 2 deletions polygon/heimdall/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ func (c *Client) FetchStateSyncEvents(ctx context.Context, fromID uint64, to tim

c.logger.Trace(heimdallLogPrefix("Fetching state sync events"), "queryParams", url.RawQuery)

ctx = withRequestType(ctx, stateSyncRequest)
reqCtx := withRequestType(ctx, stateSyncRequest)

response, err := FetchWithRetry[StateSyncEventsResponse](ctx, c, url, c.logger)
response, err := FetchWithRetry[StateSyncEventsResponse](reqCtx, c, url, c.logger)
if err != nil {
if errors.Is(err, ErrNoResponse) {
// for more info check https://github.com/maticnetwork/heimdall/pull/993
Expand Down

0 comments on commit 5eb2c2c

Please sign in to comment.