| 68 | } |
| 69 | |
| 70 | type watcher struct { |
| 71 | producers map[string]*producer |
| 72 | consumers map[string]*consumer |
| 73 | |
| 74 | mux sync.Mutex |
| 75 | closed bool |
| 76 | quit chan struct{} |
| 77 | ctx context.Context |
| 78 | } |
| 79 | |
| 80 | func (w *watcher) RegisterProducer(ctx context.Context, id string) (common.Producer, error) { |
| 81 | w.mux.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected