From 40074a5a57822fa36a6e5cbe20cfc74efe395698 Mon Sep 17 00:00:00 2001 From: John Hilliard Date: Wed, 9 Aug 2023 19:05:32 -0400 Subject: [PATCH] feat: lint --- cmd/monitor/monitor.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cmd/monitor/monitor.go b/cmd/monitor/monitor.go index f3ad0bd7..c4332a83 100644 --- a/cmd/monitor/monitor.go +++ b/cmd/monitor/monitor.go @@ -210,7 +210,10 @@ func fetchBlocks(ctx context.Context, ec *ethclient.Client, ms *monitorStatus, r prependLatestBlocks(ctx, ms, rpc) if shouldLoadMoreHistory(ctx, ms) { - appendOlderBlocks(ctx, ms, rpc) + err = appendOlderBlocks(ctx, ms, rpc) + if err != nil { + log.Warn().Err(err).Msg("unable to append more history") + } } return @@ -666,7 +669,10 @@ func renderMonitorUI(ctx context.Context, ec *ethclient.Client, ms *monitorStatu windowOffset += windowSize // good to go to next page but not enough blocks to fill page if windowOffset > len(allBlocks)-windowSize { - appendOlderBlocks(ctx, ms, rpc) + err := appendOlderBlocks(ctx, ms, rpc) + if err != nil { + log.Warn().Err(err).Msg("unable to append more history") + } forceRedraw = true redraw(ms, true) }