GODT-213: Add comments for newly added code

This commit is contained in:
James Houlahan
2021-03-25 10:00:08 +01:00
parent 50550d42b4
commit ef6a3d4999
6 changed files with 31 additions and 0 deletions

View File

@ -43,6 +43,11 @@ func newBuildResFailure(messageID string, err error) buildRes {
}
}
// startBuildWorkers starts the given number of build workers.
// These workers decrypt and build messages into RFC822 literals.
// Two channels are returned:
// - buildReqCh: used to send work items to the worker pool
// - buildResCh: used to receive work results from the worker pool
func startBuildWorkers(buildWorkers int) (chan fetchRes, chan buildRes) {
buildReqCh := make(chan fetchRes)
buildResCh := make(chan buildRes)