Closed wingyu closed 7 years ago
:+1: @orien
@twe4ked sorry, I should've provided more context, I've updated the PR comment above, which hopefully clears things up. @orien thanks for the feedback, I'll give that a shot
@orien I'm going to merge this now since @stevehodgkiss needs this change now. I'll implement your suggestion in a seperate PR after this
Context
Whenever
start
is called on an instance ofEventSourcery::EventStore::Subscription
and an error is raised,shutdown!
will be called on its PollWaiter(https://github.com/envato/event_sourcery/blob/master/lib/event_sourcery/event_store/subscription.rb#L27)However, if the default PollWaiter class is used to initiate
EventSourcery::EventStore::Subscription
, it will raise a NoMethodError asshutdown!
is not defined.This would not be an issue for
event_sourcery-postgres
users as it usesEventSourcery::Postgres::OptimisedEventPollWaiter
, which hasshutdown!
defined