From f119c69925cd5f682a604de3f24446e394d68b46 Mon Sep 17 00:00:00 2001 From: Domino Valdano <2644901+reductionista@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:37:53 -0800 Subject: [PATCH] Fix lints in log_poller.go --- pkg/solana/logpoller/log_poller.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/solana/logpoller/log_poller.go b/pkg/solana/logpoller/log_poller.go index 6efc91910..37f897aa2 100644 --- a/pkg/solana/logpoller/log_poller.go +++ b/pkg/solana/logpoller/log_poller.go @@ -57,9 +57,9 @@ func NewLogPoller(lggr logger.SugaredLogger, orm ORM, cl internal.Loader[client. return &lp } -func (lp LogPoller) Process(event ProgramEvent) error { +func (lp *LogPoller) Process(event ProgramEvent) error { // process stream of events coming from event loader - + lp.events = append(lp.events, event) return nil } @@ -114,9 +114,8 @@ func (lp *LogPoller) loadFilters(ctx context.Context) error { if err != nil { lp.lggr.Errorw("Failed loading filters in init logpoller loop, retrying later", "err", err) } - - return nil } + // unreachable } func (lp *LogPoller) run() {