aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-03-17 10:49:48 +0100
committerRasmus Dahlberg <rasmus@rgdd.se>2023-03-17 10:49:48 +0100
commitb53aa358d64a22e8747bf3a9d117df7135b9edac (patch)
tree401fb4039922a976e7040953300d8c580696aef7 /main.go
parent979e87fcce5482d6da1dd40b3e5ba790dc7af7ea (diff)
wip collect
Diffstat (limited to 'main.go')
-rw-r--r--main.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/main.go b/main.go
index 0511ab7..02ed413 100644
--- a/main.go
+++ b/main.go
@@ -51,6 +51,10 @@ type options struct {
sthFile string
stateFile string
sansFile string
+
+ workersPerLog uint64
+ batchSize uint64
+ persistSize uint64
}
func main() {
@@ -82,13 +86,17 @@ func main() {
opts.stateFile = "th.json"
opts.sansFile = "sans.lst"
+ opts.workersPerLog = 10
+ opts.batchSize = 16384
+ opts.persistSize = 256
+
// Hand-over to the respective subcommands
var err error
switch cmd := os.Args[1]; cmd {
case "snapshot":
err = snapshot(opts)
- //case "collect":
- // err = collect(opts)
+ case "collect":
+ err = collect(opts)
case "assemble":
err = assemble(opts)
default: