| 45 | } |
| 46 | |
| 47 | eventNotifier struct{ |
| 48 | // Using a map with an empty struct allows us to keep the observers |
| 49 | // unique while still keeping memory usage relatively low. |
| 50 | observers map[Observer]struct{} |
| 51 | } |
| 52 | ) |
| 53 | |
| 54 | func (o *eventObserver) OnNotify(e Event) { |
nothing calls this directly
no outgoing calls
no test coverage detected