Fix some pointer inconsistencies in code

This commit is contained in:
Andrew Ayer 2016-02-22 15:29:52 -08:00
parent 09c37cfdfd
commit 5803389588
2 changed files with 3 additions and 3 deletions

View File

@ -167,7 +167,7 @@ func Main (argStateDir string, processCallback ctwatch.ProcessCallback) {
ParallelFetch: *parallelFetch,
Quiet: !*verbose,
}
scanner := ctwatch.NewScanner(logUri, logKey, opts)
scanner := ctwatch.NewScanner(logUri, logKey, &opts)
latestSTH, err := scanner.GetSTH()
if err != nil {

View File

@ -287,11 +287,11 @@ func (s *Scanner) Scan(startIndex int64, endIndex int64, processCert ProcessCall
// Creates a new Scanner instance using |client| to talk to the log, and taking
// configuration options from |opts|.
func NewScanner(logUri string, publicKey crypto.PublicKey, opts ScannerOptions) *Scanner {
func NewScanner(logUri string, publicKey crypto.PublicKey, opts *ScannerOptions) *Scanner {
var scanner Scanner
scanner.LogUri = logUri
scanner.publicKey = publicKey
scanner.logClient = client.New(logUri)
scanner.opts = opts
scanner.opts = *opts
return &scanner
}