-
Notifications
You must be signed in to change notification settings - Fork 547
ingest/ledgerbackend: fix rpc ledger backend retries #5718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8c21521
#5571: use the expected err output for invalid ranges from latest cha…
c0ca686
update golangci version
sreuland 78e20f2
#5571: resolved golangci errors
38ec6b7
Merge remote-tracking branch 'upstream/rpc_backend_fix' into rpc_back…
7611268
#5571: debugging gha linter
d0de9ca
#5571: revert to original golangci.yml
7913e39
#5571: removed ineffective depgaurd from golangci.yml
341b747
#5571: reverted back golangci.yml
4e9b2f1
#5571: gha golangci step config to continue on error also
bd99e38
#5571: gha golangci use 2.1.6 version
800b635
#5571: migrate golangci.yml to v2
4e279a5
#5571: use getHealth to discriminate between beyond latest and out of…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,129 +1,95 @@ | ||
| linters-settings: | ||
| depguard: | ||
| list-type: denylist | ||
| packages: | ||
| # logging is allowed only by logutils.Log, logrus | ||
| # is allowed to use only in logutils package | ||
| - github.com/sirupsen/logrus | ||
| packages-with-error-message: | ||
| - github.com/sirupsen/logrus: "logging is allowed only by logutils.Log" | ||
| dupl: | ||
| threshold: 100 | ||
| funlen: | ||
| lines: 100 | ||
| statements: 50 | ||
| goconst: | ||
| min-len: 2 | ||
| min-occurrences: 3 | ||
| gocritic: | ||
| enabled-tags: | ||
| - diagnostic | ||
| - experimental | ||
| - opinionated | ||
| - performance | ||
| - style | ||
| disabled-checks: | ||
| - dupImport # https://github.com/go-critic/go-critic/issues/845 | ||
| - ifElseChain | ||
| - octalLiteral | ||
| - whyNoLint | ||
| gocyclo: | ||
| min-complexity: 15 | ||
| goimports: | ||
| local-prefixes: github.com/golangci/golangci-lint | ||
| gomnd: | ||
| # don't include the "operation" and "assign" | ||
| checks: | ||
| - argument | ||
| - case | ||
| - condition | ||
| - return | ||
| ignored-numbers: | ||
| - '0' | ||
| - '1' | ||
| - '2' | ||
| - '3' | ||
| ignored-functions: | ||
| - strings.SplitN | ||
|
|
||
| govet: | ||
| check-shadowing: true | ||
| settings: | ||
| printf: | ||
| funcs: | ||
| - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof | ||
| - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf | ||
| - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf | ||
| - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf | ||
| lll: | ||
| line-length: 140 | ||
| misspell: | ||
| locale: US | ||
| nolintlint: | ||
| allow-unused: false # report any unused nolint directives | ||
| require-explanation: false # don't require an explanation for nolint directives | ||
| require-specific: false # don't require nolint directives to be specific about which linter is being skipped | ||
|
|
||
| version: "2" | ||
| linters: | ||
| disable-all: true | ||
| default: none | ||
| enable: | ||
| - bodyclose | ||
| - depguard | ||
| - dogsled | ||
| - dupl | ||
| - errcheck | ||
| - exportloopref | ||
| - funlen | ||
| - gochecknoinits | ||
| - goconst | ||
| #- gocritic | ||
| - gocyclo | ||
| - gofmt | ||
| - goimports | ||
| - gomnd | ||
| - goprintffuncname | ||
| - gosec | ||
| - gosimple | ||
| - govet | ||
| - ineffassign | ||
| - lll | ||
| - misspell | ||
| - mnd | ||
| - nakedret | ||
| - noctx | ||
| - nolintlint | ||
| - staticcheck | ||
| - stylecheck | ||
| - typecheck | ||
| - unconvert | ||
| - unparam | ||
| - unused | ||
| #- whitespace | ||
|
|
||
| # don't enable: | ||
| # - asciicheck | ||
| # - scopelint | ||
| # - gochecknoglobals | ||
| # - gocognit | ||
| # - godot | ||
| # - godox | ||
| # - goerr113 | ||
| # - interfacer | ||
| # - maligned | ||
| # - nestif | ||
| # - prealloc | ||
| # - testpackage | ||
| # - revive | ||
| # - wsl | ||
|
|
||
| issues: | ||
| # Excluding configuration per-path, per-linter, per-text and per-source | ||
| exclude-rules: | ||
| - path: _test\.go | ||
| linters: | ||
| - govet | ||
|
|
||
| run: | ||
| timeout: 5m | ||
| skip-dirs: | ||
| - docs | ||
| - vendor | ||
| settings: | ||
| dupl: | ||
| threshold: 100 | ||
| funlen: | ||
| lines: 100 | ||
| statements: 50 | ||
| goconst: | ||
| min-len: 2 | ||
| min-occurrences: 3 | ||
| gocritic: | ||
| disabled-checks: | ||
| - dupImport | ||
| - ifElseChain | ||
| - octalLiteral | ||
| - whyNoLint | ||
| enabled-tags: | ||
| - diagnostic | ||
| - experimental | ||
| - opinionated | ||
| - performance | ||
| - style | ||
| gocyclo: | ||
| min-complexity: 15 | ||
| govet: | ||
| settings: | ||
| printf: | ||
| funcs: | ||
| - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof | ||
| - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf | ||
| - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf | ||
| - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf | ||
| lll: | ||
| line-length: 140 | ||
| misspell: | ||
| locale: US | ||
| nolintlint: | ||
| require-explanation: false | ||
| require-specific: false | ||
| allow-unused: false | ||
| exclusions: | ||
| generated: lax | ||
| presets: | ||
| - comments | ||
| - common-false-positives | ||
| - legacy | ||
| - std-error-handling | ||
| rules: | ||
| - linters: | ||
| - govet | ||
| path: _test\.go | ||
| paths: | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ | ||
| formatters: | ||
| enable: | ||
| - gofmt | ||
| - goimports | ||
| settings: | ||
| goimports: | ||
| local-prefixes: | ||
| - github.com/golangci/golangci-lint | ||
| exclusions: | ||
| generated: lax | ||
| paths: | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.