diff options
author | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-03-17 10:49:48 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-03-17 10:49:48 +0100 |
commit | b53aa358d64a22e8747bf3a9d117df7135b9edac (patch) | |
tree | 401fb4039922a976e7040953300d8c580696aef7 /main.go | |
parent | 979e87fcce5482d6da1dd40b3e5ba790dc7af7ea (diff) |
wip collect
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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: |