feat: use AlwaysRouteFilteringStrategy
if alwaysRoute
is enabled
#649
golangci-lint.yml
on: pull_request
Code linting with golangci-lint
15s
Annotations
10 errors and 1 warning
Code linting with golangci-lint:
internal/checks/blockheight.go#L1
: # github.com/satsuma-data/node-gateway/internal/checks [github.com/satsuma-data/node-gateway/internal/checks.test]
|
Code linting with golangci-lint:
internal/checks/errorlatency_test.go#L16
undefined: config.UnhealthyReason
|
Code linting with golangci-lint:
internal/checks/errorlatency_test.go#L34
not enough arguments in call to NewErrorLatencyChecker
|
Code linting with golangci-lint:
internal/checks/errorlatency_test.go#L37
checker.GetUnhealthyReason undefined (type "github.com/satsuma-data/node-gateway/internal/types".ErrorLatencyChecker has no field or method GetUnhealthyReason)
|
Code linting with golangci-lint:
internal/checks/errorlatency_test.go#L43
undefined: config.ReasonUnknownOrHealthy
|
Code linting with golangci-lint:
internal/checks/errorlatency_test.go#L47
undefined: config.ReasonUnknownOrHealthy
|
Code linting with golangci-lint:
internal/checks/errorlatency_test.go#L51
undefined: config.ReasonLatencyTooHighRate
|
Code linting with golangci-lint:
internal/checks/errorlatency_test.go#L55
undefined: config.ReasonLatencyTooHighRate
|
Code linting with golangci-lint:
internal/checks/errorlatency_test.go#L59
undefined: config.ReasonLatencyTooHighRate
|
Code linting with golangci-lint:
internal/checks/manager.go#L95
cannot use NewErrorLatencyChecker (value of type func(upstreamConfig *config.UpstreamConfig, routingConfig *config.RoutingConfig, clientGetter client.EthClientGetter, metricsContainer *"github.com/satsuma-data/node-gateway/internal/metrics".Container, logger *zap.Logger, enableErrorChecking bool, enableLatencyChecking bool) "github.com/satsuma-data/node-gateway/internal/types".ErrorLatencyChecker) as func(*config.UpstreamConfig, *config.RoutingConfig, client.EthClientGetter, *"github.com/satsuma-data/node-gateway/internal/metrics".Container, *zap.Logger) "github.com/satsuma-data/node-gateway/internal/types".ErrorLatencyChecker value in struct literal (typecheck)
|
Code linting with golangci-lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v3, actions/checkout@v3, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|