aboutsummaryrefslogtreecommitdiff
path: root/collect.go
diff options
context:
space:
mode:
Diffstat (limited to 'collect.go')
-rw-r--r--collect.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/collect.go b/collect.go
index 1e469b3..53b7607 100644
--- a/collect.go
+++ b/collect.go
@@ -87,7 +87,7 @@ func collect(opts options) error {
}
cli, err := client.New(string(log.URL),
&http.Client{Transport: &http.Transport{IdleConnTimeout: 120 * time.Second}},
- jsonclient.Options{UserAgent: opts.httpAgent},
+ jsonclient.Options{UserAgent: opts.HTTPAgent},
)
if err != nil {
fmt.Fprintf(os.Stderr, "ERROR: %s: %v\n", *log.Description, err)
@@ -95,10 +95,10 @@ func collect(opts options) error {
return
}
fetcher := scanner.NewFetcher(cli, &scanner.FetcherOptions{
- BatchSize: int(opts.batchSize),
+ BatchSize: int(opts.BatchSize),
StartIndex: th.TreeSize,
EndIndex: int64(sth.TreeSize),
- ParallelFetch: int(opts.workersPerLog),
+ ParallelFetch: int(opts.WorkersPerLog),
})
//
@@ -150,7 +150,7 @@ func collect(opts options) error {
}
c = h.TPop()
- putBack, err := persistChunk(cli, opts, id[:], int64(opts.persistSize), c)
+ putBack, err := persistChunk(cli, opts, id[:], int64(opts.PersistSize), c)
if err != nil {
cancel()
fmt.Fprintf(os.Stderr, "ERROR: %s: %v\n", *log.Description, err)