Skip to content

πŸ› Bug Fix: Duplicate Event Processing

Pre-release
Pre-release

Choose a tag to compare

@vadikko2 vadikko2 released this 18 Jan 22:06
· 21 commits to master since this release
7bd9e09

πŸ› Bug Fix: Duplicate Event Processing

Fixed critical bug where events were being processed twice, causing duplicate event handler executions.

What Changed

  • Before: Events were processed through both process_events() and emit_events(), causing duplicate execution
  • After: Events are now processed exactly once through EventEmitter, which handles routing internally

Impact

βœ… Events processed exactly once
βœ… Improved performance
βœ… Simplified internal API
βœ… No breaking changes for end users

Technical Details

  • Removed duplicate processing logic from EventProcessor
  • Simplified EventProcessor API (removed container and middleware_chain parameters)
  • EventEmitter now handles all event routing (DomainEvent β†’ handlers, NotificationEvent β†’ broker)