You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Later registered events with class method will not be registered on the instance too, because the duplication of events and listeners is being done only when any instance method ( any that use __bus__) is called.
loading the sql dry-monitor extension after an instance of Publisher was created and consumed will not registers new events if the entire app uses the same instance of 'Publisher' (Dry::Web::Container creates an instance of Notifications publisher that is supposed to be used globally, at least for logging)
The text was updated successfully, but these errors were encountered:
Later registered events with class method will not be registered on the instance too, because the duplication of events and listeners is being done only when any instance method ( any that use
__bus__
) is called.dry-events/lib/dry/events/publisher.rb
Lines 181 to 238 in 8094007
For example, given that dry-monitor registers
:sql
event with the.register_event(:name)
:https://github.com/dry-rb/dry-monitor/blob/7a0625c199c8cbd8d053956b2735d4074a22b0dd/lib/dry/monitor/sql/logger.rb#L5-L10
loading the sql dry-monitor extension after an instance of
Publisher
was created and consumed will not registers new events if the entire app uses the same instance of 'Publisher' (Dry::Web::Container
creates an instance ofNotifications
publisher that is supposed to be used globally, at least for logging)The text was updated successfully, but these errors were encountered: