From 3c220e56f608a4f0849c47f68ff6cedfdd110f42 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Sun, 1 May 2016 12:49:07 -0700 Subject: [PATCH] scanner: reduce channel queue buffer length To keep memory consumption down --- scanner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanner.go b/scanner.go index fea6fd8..a34ef96 100644 --- a/scanner.go +++ b/scanner.go @@ -244,7 +244,7 @@ func (s *Scanner) Scan(startIndex int64, endIndex int64, processCert ProcessCall */ // Start processor workers - jobs := make(chan ct.LogEntry, 100000) + jobs := make(chan ct.LogEntry, 100) var processorWG sync.WaitGroup for w := 0; w < s.opts.NumWorkers; w++ { processorWG.Add(1)