mirror of
https://github.com/SSLMate/certspotter.git
synced 2025-06-27 10:15:33 +02:00
Imprve comment
This commit is contained in:
parent
694eb276a6
commit
9544d8ab50
@ -269,7 +269,13 @@ func monitorLogContinously(ctx context.Context, config *Config, ctlog *loglist.L
|
|||||||
retry:
|
retry:
|
||||||
position := state.DownloadPosition.Size()
|
position := state.DownloadPosition.Size()
|
||||||
|
|
||||||
// generateBatchesWorker ==> downloadWorker ==> processWorker ==> saveStateWorker
|
// logs are monitored using the following pipeline of workers, with each worker sending results to the next worker:
|
||||||
|
// 1 getSTHWorker ==> 1 generateBatchesWorker ==> multiple downloadWorkers ==> multiple processWorkers ==> 1 saveStateWorker
|
||||||
|
// getSTHWorker - periodically download STHs from the log
|
||||||
|
// generateBatchesWorker - generate batches of work
|
||||||
|
// downloadWorkers - download the entries in each batch
|
||||||
|
// processWorkers - process the certificates (store/notify if matches watch list) in each batch
|
||||||
|
// saveStateWorker - builds the Merkle Tree and compares against STHs
|
||||||
|
|
||||||
sths := make(chan *cttypes.SignedTreeHead, 1)
|
sths := make(chan *cttypes.SignedTreeHead, 1)
|
||||||
batches := make(chan *batch, downloadWorkers(ctlog))
|
batches := make(chan *batch, downloadWorkers(ctlog))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user