()
| 561 | } |
| 562 | |
| 563 | func (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 | |
| 577 | func (b *binder) worker() { |
| 578 | defer b.workerWG.Done() |
no test coverage detected