From 3d431363683aab5a7aace5c65114db6832e02ad3 Mon Sep 17 00:00:00 2001 From: Domino Valdano <2644901+reductionista@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:36:59 -0800 Subject: [PATCH] Fix lints in log_poller.go & types.go --- pkg/solana/logpoller/filters_test.go | 2 +- pkg/solana/logpoller/types.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/solana/logpoller/filters_test.go b/pkg/solana/logpoller/filters_test.go index 96ff04f76..4b7f57f9b 100644 --- a/pkg/solana/logpoller/filters_test.go +++ b/pkg/solana/logpoller/filters_test.go @@ -129,7 +129,7 @@ func TestFilters_RegisterFilter(t *testing.T) { filter := Filter{Name: filterName} err := fs.RegisterFilter(tests.Context(t), filter) require.Error(t, err) - // can readd after db issue is resovled + // can read after db issue is resolved orm.On("InsertFilter", mock.Anything, mock.Anything).Return(int64(1), nil).Once() err = fs.RegisterFilter(tests.Context(t), filter) require.NoError(t, err) diff --git a/pkg/solana/logpoller/types.go b/pkg/solana/logpoller/types.go index 5e8344faf..143c28898 100644 --- a/pkg/solana/logpoller/types.go +++ b/pkg/solana/logpoller/types.go @@ -98,8 +98,8 @@ func (p *SubkeyPaths) Scan(src interface{}) error { return nil } -func (k SubkeyPaths) Equal(o SubkeyPaths) bool { - return slices.EqualFunc(k, o, slices.Equal) +func (p SubkeyPaths) Equal(o SubkeyPaths) bool { + return slices.EqualFunc(p, o, slices.Equal) } const EventSignatureLength = 8