Skip to content

Commit

Permalink
feat: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
praetoriansentry committed Aug 9, 2023
1 parent f2d5ff5 commit 40074a5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmd/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 40074a5

Please sign in to comment.