Events db backend #62
Annotations
10 errors and 1 warning
cmd/soroban-rpc/internal/db/event.go#L37
use of `errors.New` forbidden because "Do not use stellar/go/support/errors, use the standard 'errors' package and fmt.Errorf()." (forbidigo)
|
cmd/soroban-rpc/internal/db/event.go#L45
use of `errors.Wrapf` forbidden because "Do not use stellar/go/support/errors, use the standard 'errors' package and fmt.Errorf()." (forbidigo)
|
cmd/soroban-rpc/internal/db/event_test.go#L44
Consider pre-allocating `txProcessing` (prealloc)
|
cmd/soroban-rpc/internal/db/event_test.go#L45
Consider pre-allocating `phases` (prealloc)
|
cmd/soroban-rpc/internal/db/event.go#L84
var-naming: var contractId should be contractID (revive)
|
cmd/soroban-rpc/internal/db/event.go#L30
field `ingestMetric` is unused (unused)
|
cmd/soroban-rpc/internal/db/event.go#L59
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
cmd/soroban-rpc/internal/ingest/mock_db_test.go#L41
type assertion must be checked (forcetypeassert)
|
cmd/soroban-rpc/internal/ingest/mock_db_test.go#L39
copylocks: EventWriter passes lock by value: github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/ingest.MockTx contains github.com/stretchr/testify/mock.Mock contains sync.Mutex (govet)
|
cmd/soroban-rpc/internal/ingest/mock_db_test.go#L109
copylocks: InsertEvents passes lock by value: github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/ingest.MockEventWriter contains github.com/stretchr/testify/mock.Mock contains sync.Mutex (govet)
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
This job failed
Loading