Skip to content

Commit

Permalink
Make event_source a polymorphic type
Browse files Browse the repository at this point in the history
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
jbytheway committed Apr 30, 2020
1 parent dcc42a9 commit 743ff9e
Showing 1 changed file with 140 additions and 106 deletions.
Loading

0 comments on commit 743ff9e

Please sign in to comment.