Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
Merge branch 'e35_sharded_bloom_ef' into e35
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Sep 15, 2023
2 parents c7a3063 + 2eaedcf commit 433dbe8
Show file tree
Hide file tree
Showing 11 changed files with 435 additions and 210 deletions.
12 changes: 12 additions & 0 deletions common/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"context"
"os"
"os/signal"
"strings"
"syscall"

"github.com/ledgerwatch/log/v3"
Expand All @@ -44,3 +45,14 @@ func RootContext() (context.Context, context.CancelFunc) {
}()
return ctx, cancel
}

func CliString2Array(input string) []string {
l := strings.Split(input, ",")
res := make([]string, 0, len(l))
for _, r := range l {
if r = strings.TrimSpace(r); r != "" {
res = append(res, r)
}
}
return res
}
Loading

0 comments on commit 433dbe8

Please sign in to comment.