From 1473ca3b4084abbf92cdc6878c626b55b6df98c2 Mon Sep 17 00:00:00 2001 From: kompotkot Date: Sun, 6 Mar 2022 23:33:28 +0000 Subject: [PATCH] Fixes --- crawlers/ldb/cmd/cli.go | 5 +---- crawlers/ldb/cmd/data.go | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/crawlers/ldb/cmd/cli.go b/crawlers/ldb/cmd/cli.go index 4eae0478..97e5e44b 100644 --- a/crawlers/ldb/cmd/cli.go +++ b/crawlers/ldb/cmd/cli.go @@ -8,8 +8,6 @@ import ( "sort" "strconv" - // "github.com/bugout-dev/moonstream/crawlers/ldb/configs" - "github.com/ethereum/go-ethereum/cmd/utils" "github.com/google/uuid" "gopkg.in/urfave/cli.v1" @@ -61,7 +59,7 @@ func BlockYield(start, end, blockStep uint64) chan []uint64 { var blocks []uint64 for i := currentBlock; i < tempEnd; i++ { - blocks = append(blocks, i) // Block operation + blocks = append(blocks, i) // Blocking operation } ch <- blocks @@ -75,7 +73,6 @@ func BlockYield(start, end, blockStep uint64) chan []uint64 { } // Parse start and end blocks from command line input -// TODO(kompotkot): Re-write to work via channel in goroutines func startEndBlock(ctx *cli.Context) (uint64, uint64, error) { inputStart, err := strconv.ParseUint(ctx.Args().Get(0), 10, 32) if err != nil { diff --git a/crawlers/ldb/cmd/data.go b/crawlers/ldb/cmd/data.go index ce816165..4650d6be 100644 --- a/crawlers/ldb/cmd/data.go +++ b/crawlers/ldb/cmd/data.go @@ -59,7 +59,7 @@ type Job struct { Results chan<- Result } -// TODO(kompotkot): Find way to remove Number +// TODO(kompotkot): Find way to remove Number, it repeats Job type Result struct { ErrorOutput string ErrorSource string