MCPcopy Create free account
hub / github.com/cloudflare/cfssl / newContext

Function newContext

cli/scan/scan.go:41–51  ·  view source on GitHub ↗
(c cli.Config, numWorkers int)

Source from the content-addressed store, hash-verified

39}
40
41func newContext(c cli.Config, numWorkers int) *context {
42 ctx := &context{
43 c: c,
44 hosts: make(chan string, numWorkers),
45 }
46 ctx.Add(numWorkers)
47 for i := 0; i < numWorkers; i++ {
48 go ctx.runWorker()
49 }
50 return ctx
51}
52
53func (ctx *context) runWorker() {
54 for host := range ctx.hosts {

Callers 1

scanMainFunction · 0.70

Calls 2

runWorkerMethod · 0.95
AddMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…