Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make event_source a polymorphic type
Every function in event_source was an if statement for the two different possibilities. This is a code smell that suggests we ought to be using two derived classes and dynamic dispatch instead. So, do that. No change to functionality intended.
- Loading branch information