MCPcopy Create free account
hub / github.com/coder/coder / handleBindings

Method handleBindings

enterprise/tailnet/pgcoord.go:563–575  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

561}
562
563func (b *binder) handleBindings() {
564 for {
565 select {
566 case <-b.ctx.Done():
567 b.logger.Debug(b.ctx, "binder exiting")
568 return
569 case bnd := <-b.bindings:
570 if b.storeBinding(bnd) {
571 b.workQ.enqueue(bnd.bKey)
572 }
573 }
574 }
575}
576
577func (b *binder) worker() {
578 defer b.workerWG.Done()

Callers 1

newBinderFunction · 0.95

Calls 3

storeBindingMethod · 0.95
enqueueMethod · 0.80
DoneMethod · 0.45

Tested by

no test coverage detected