MCPcopy Index your code
hub / github.com/cloudtty/cloudtty / tryHandleRequestQueue

Method tryHandleRequestQueue

pkg/workerpool/worker_pool.go:229–243  ·  view source on GitHub ↗
(stop <-chan struct{})

Source from the content-addressed store, hash-verified

227}
228
229func (w *WorkerPool) tryHandleRequestQueue(stop <-chan struct{}) {
230 t := time.NewTicker(time.Second * 5)
231 for {
232 select {
233 case <-t.C:
234 klog.V(4).InfoS("time ticker trigger")
235 w.handleRequestQueue()
236 case <-w.matchRequestSignal:
237 klog.InfoS("received request signal")
238 w.handleRequestQueue()
239 case <-stop:
240 return
241 }
242 }
243}
244
245func (w *WorkerPool) handleRequestQueue() {
246 w.Lock()

Callers 1

runMethod · 0.95

Calls 1

handleRequestQueueMethod · 0.95

Tested by

no test coverage detected