MCPcopy Index your code
hub / github.com/probelabs/goreplay / workerMaster

Method workerMaster

output_binary.go:61–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61func (o *BinaryOutput) workerMaster() {
62 for {
63 newWorkers := <-o.needWorker
64 for i := 0; i < newWorkers; i++ {
65 go o.startWorker()
66 }
67
68 // Disable dynamic scaling if workers poll fixed size
69 if o.config.Workers != 0 {
70 return
71 }
72 }
73}
74
75func (o *BinaryOutput) startWorker() {
76 client := NewTCPClient(o.address, &TCPClientConfig{

Callers 1

NewBinaryOutputFunction · 0.45

Calls 1

startWorkerMethod · 0.95

Tested by

no test coverage detected